public static Platform GetPlatform() { ChoosePlatformDialog a = new ChoosePlatformDialog(); a.ShowDialog(); return(a.platform); }
public static Platform GetPlatform() { using (var dialog = new ChoosePlatformDialog()) if (dialog.ShowDialog() == DialogResult.OK) { return(dialog.platform); } return(Platform.Unknown); }