private void btnHome_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; if (frm_Login.manager == "Manager") { var myForm = new frm_MainHomeManager(manager); myForm.Show(); this.Hide(); } else if (frm_Login.user == "Staff" || frm_Login.supervisor == "Supervisor") { Cursor.Current = Cursors.AppStarting; var myForm = new frm_POS(); myForm.Show(); this.Hide(); } else if (frm_Login.stockman == "Stockman") { Cursor.Current = Cursors.AppStarting; var myForm = new frm_Inventory(); myForm.Show(); this.Hide(); } }
private void button3_Click(object sender, EventArgs e) { var pleaseWait = new frm_PleaseWait(); pleaseWait.Show(); Application.DoEvents(); Cursor.Current = Cursors.WaitCursor; var myForm = new frm_Inventory(); myForm.Show(); pleaseWait.Hide(); this.Hide(); }
private void btnInventory_Click(object sender, EventArgs e) { if (frm_Login.stockman == "Stockman") { } else { var pleaseWait = new frm_PleaseWait(); pleaseWait.Show(); Application.DoEvents(); Cursor.Current = Cursors.WaitCursor; var myForm = new frm_Inventory(); myForm.Show(); pleaseWait.Hide(); this.Hide(); } }