private void DownloadExcistingConfiguration_Click(object sender, RoutedEventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); Config cfg; openFileDialog.Filter = "New Game Configuration files (*.dat)|*NewGameConfig.dat"; openFileDialog.InitialDirectory = Environment.CurrentDirectory + @"\Svoya Igra Design\bin\Debug\"; string FileName = ""; if (openFileDialog.ShowDialog() == true) { FileName = openFileDialog.FileName; cfg = DeserializeCfg(FileName); CreateGameWindow CGW = new CreateGameWindow(cfg, tCBox); CGW.ShowDialog(); } }
private void CreateNewGameButton_Click(object sender, RoutedEventArgs e) { CreateGameWindow CGW = new CreateGameWindow(tCBox); CGW.ShowDialog(); }