private void button2_Click(object sender, EventArgs e) { if (textBox1.Text == "" || textBox2.Text == "") { return; } User.temp1 = textBox1.Text.Replace(" ", ""); User.temp2 = textBox2.Text.Replace(" ", ""); DoctorInForm2 form2 = new DoctorInForm2(); form2.Show(); }
private void button1_Click(object sender, EventArgs e) { if (comboBox2.Text != "") { User.temp1 = comboBox1.Text; User.temp2 = comboBox2.Text; DoctorInForm2 form2 = new DoctorInForm2(); form2.Show(); User.temp3 = false; timer1.Enabled = true; this.Hide(); } }