private void newToolStripMenuItem_Click(object sender, EventArgs e) { NewGameForm form = new NewGameForm(); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Game = form.Game; FileLocation = null; Refresh(); } }
public NewGameForm() { InitializeComponent(); Game = new BaseGame(); }
private void loadToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Xanatos Game (*.xan)|*.xan"; if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { FileLocation = ofd.FileName; Game = BaseGame.Load(FileLocation); Refresh(); } }