private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { if (Environment.GetCommandLineArgs().Length != 1) { ILoader loader = new BinaryLoader(); Container container = null; try { container = loader.Load(Environment.GetCommandLineArgs()[1]); } catch (Exception) { this.ShowMessageAsync("Impossible de lire le fichier selectionner", Environment.GetCommandLineArgs()[1]); } if (container != null) { MainControl.Content = new GameModeSelection(container, this); } else { MainControl.Content = new Home(this); } } else { MainControl.Content = new Home(this); } }
public JoinGameOptions(MainWindow mainWindow, Container container) { InitializeComponent(); _container = container; _mainWindow = mainWindow; InitComboBoxIp(); }