コード例 #1
0
        private void loadButton_Click(object sender, EventArgs e)
        {
            openFileDialog1.InitialDirectory = Program.resourcesPath;
            openFileDialog1.DefaultExt       = "sav";

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                Groups group = Program.ReadFromBinaryFile <Groups>(openFileDialog1.FileName);
                this.Group = group;

                this.Hide();

                idolPicksForm f2 = new idolPicksForm();
                f2.CallingForm = this;
                f2.Group       = this.Group;
                f2.LoadedGame  = true;

                ResultsForm f3 = new ResultsForm();
                f3.CallingForm = f2;
                f3.Show();
                f3.Hide();
            }
        }