public static GameTypeResults ShowDialog(Window owner, bool isJapanese) { SelectGameTypeFullWindow form = new SelectGameTypeFullWindow(isJapanese); form.Owner = owner; form.WindowStartupLocation = WindowStartupLocation.CenterOwner; var dialogResult = form.ShowDialog(); if (dialogResult.HasValue && dialogResult.Value) { GameTypeResults results = new GameTypeResults(); results.GameType = form.result; results.IsJapanese = form.isJapanese; return results; } return null; }
public static GameTypeResults ShowDialog(Window owner, bool isJapanese) { SelectGameTypeFullWindow form = new SelectGameTypeFullWindow(isJapanese); form.Owner = owner; form.WindowStartupLocation = WindowStartupLocation.CenterOwner; var dialogResult = form.ShowDialog(); if (dialogResult.HasValue && dialogResult.Value) { GameTypeResults results = new GameTypeResults(); results.GameType = form.result; results.IsJapanese = form.isJapanese; return(results); } return(null); }