private void finishButton_Click(object sender, EventArgs e) { if (textBox1.Text == "") { MessageBox.Show("Group Name cannot be blank"); return; } if (textBox2.Text == "") { MessageBox.Show("Album Name cannot be blank"); return; } if (textBox3.Text == "") { MessageBox.Show("Title Track Name cannot be blank"); return; } this.Group = CallingForm.Group; this.Group.Name = textBox1.Text.ToString(); this.Group.Concept = conceptBox.Text; this.Group.ComebackInfos.Add(new Comeback(textBox3.Text, textBox2.Text, this.Group.Concept, Convert.ToInt32(numericUpDown1.Value), listBox1.Text, this.Group.Debut)); Group.Comebacks += 1; f3.Show(); this.Hide(); }
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(); } }