public static void LoadClose(Form par_frm) { if (frms.Keys.Contains(par_frm) && wait_frms.Keys.Contains(par_frm)) { frmLoad frm = frms[par_frm]; frms.Remove(par_frm); frm.Close(); Form f = wait_frms[par_frm]; wait_frms.Remove(par_frm); f.Close(); } }
public static void LoadWait(Form par_frm) { if (!frms.Keys.Contains(par_frm) && !wait_frms.Keys.Contains(par_frm)) { frmLoad frm = new frmLoad(); frms.Add(par_frm, frm); frm.Show(par_frm); Form f = new Form(); f.Opacity = 0.01; f.BackColor = Color.White; f.FormBorderStyle = FormBorderStyle.None; f.Location = Helper.GlobalData.mainFrm.Location; f.Width = Helper.GlobalData.mainFrm.Width; f.Height = Helper.GlobalData.mainFrm.Height; f.Left = Helper.GlobalData.mainFrm.Left; f.Top = Helper.GlobalData.mainFrm.Top; f.WindowState = FormWindowState.Normal; f.StartPosition = FormStartPosition.Manual; wait_frms.Add(par_frm, f); f.Show(Helper.GlobalData.mainFrm); } }
public static void LoadWait() { frmLoad frm = new frmLoad(); frm.Show(); }