예제 #1
0
        private void nextButton_Click(object sender, EventArgs e)
        {
            if (groupName.Text == "")
            {
                MessageBox.Show("Group Name cannot be blank");
                return;
            }
            this.Group             = new Groups(groupName.Text, conceptBox.Text, loanAmt.Value, groupSize.Value, hardBox.Checked, dateTimePicker1.Value.Date, checkBox1.Checked);
            this.Group.currentDate = dateTimePicker1.Value.Date;
            Group.GroupInfo();
            idolPicksForm f2 = new idolPicksForm();

            f2.CallingForm = this;
            f2.Show();
            this.Hide();
        }
예제 #2
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();
            }
        }