private void Settings_Button_Click(object sender, EventArgs e) { Hide(); User_Page frm1 = new User_Page(); frm1.ShowDialog(); frm1 = null; Show(); }
private void Login_Button_Click(object sender, EventArgs e) { Variables.loginSuccess = false; Variables.adminLoggedIn = false; Hide(); Login frm = new Login(); frm.ShowDialog(); frm = null; Show(); if (Variables.loginSuccess) { Hide(); User_Page frm1 = new User_Page(); frm1.ShowDialog(); frm1 = null; Show(); } }