private void btn_home_Click(object sender, EventArgs e) { PaitentMain pmain = new PaitentMain(); pmain.Show(); this.Hide(); }
private void btn_Patient_Click(object sender, EventArgs e) { string connetionString = null; MySqlConnection con; connetionString = "server=localhost;database=hmsdb;Uid=root;Pwd=;"; con = new MySqlConnection(connetionString); con.Open(); if (String.Compare(NA, "manager") == 0) { MessageBox.Show("YOU ARE NOT AUTHORIZED TO ACCESS THIS FUNCTION!!!"); } else { PaitentMain pm = new PaitentMain(); pm.Show(); this.Hide(); } }