public MainForm(string jgPath) { using (var form = new nameForm()) { form.ShowDialog(); constr(jgPath, form.player1Name, form.player2Name, form.player3Name); } }