I have a C# windows form application. I have a form already opened and I need to open another form as dialog. For example, I have a form "Sell Cars", inside that form I have the fields related to the car (license, model, year, etc.) and a button to open a dialog box with the list of cars to be sold. The user selects one from the list and after that I need to copy all values of the selected car into the main form and close the dialog form.
What is the best way to do it?