Esempio n. 1
0
        private void bt_load_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter           = "Text File | *.txt";
            ofd.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory;
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                var      mezo = Saves.Load(ofd.FileName);
                GameForm gf   = new GameForm(mezo);
                this.Hide();
                gf.ShowDialog();
                this.Show();
            }
        }