private void Next_Button(object sender, EventArgs e) { //if (string.IsNullOrEmpty(textBox_FirstName.Text) || string.IsNullOrWhiteSpace(textBox_FirstName.Text) || // string.IsNullOrEmpty(textBox_SecondName.Text) || string.IsNullOrWhiteSpace(textBox_SecondName.Text) || // string.IsNullOrEmpty(textBox_Group.Text) || string.IsNullOrWhiteSpace(textBox_Group.Text)) //{ // label_ErrorMassage.Visible = true; //} //else { var resultForm = new ResultForm(this); resultForm.label_FirstName.Text = textBox_FirstName.Text; resultForm.label_SecondName.Text = textBox_SecondName.Text; resultForm.label_Group.Text = textBox_Group.Text; this.Hide(); resultForm.Show(); } }
public StartForm(ResultForm resultForm) => InitializeComponent();