private void btnInfo_Click(object sender, EventArgs e) { this.Hide(); viewInfo view = new viewInfo(username); view.ShowDialog(); this.Close(); }
//Exit private void button10_Click(object sender, EventArgs e) { if (First_Page.opt1 == 0) { this.Hide(); viewInfo view = new viewInfo(this.username); view.ShowDialog(); this.Close(); } if (First_Page.opt1 == 1) { this.Hide(); patientFunctions pf = new patientFunctions(this.username); pf.ShowDialog(); this.Close(); } }