private static void GenerateExecutable(Game g) { wndGenerateExecutable executable = new wndGenerateExecutable { Tag = g }; bool flag1 = executable.ShowDialog() == true; }