private void guna2ImageButton2_Click_2(object sender, EventArgs e) { DBconnection obb = new DBconnection(); if (obb.adminLogin(global.UserID)) { Admin ob = new Admin(); ob.ShowDialog(); } else { MessageBox.Show("Only Admin has access!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void adminToolStripMenuItem_Click(object sender, EventArgs e) { Admin ob = new Admin(); ob.ShowDialog(); }
private void guna2ImageButton2_Click_1(object sender, EventArgs e) { Admin ob = new Admin(); ob.ShowDialog(); }
private void toolStripButton1_Click(object sender, EventArgs e) { Admin ob = new Admin(); ob.ShowDialog(); }