public static void Show(Form owner, string showmess) { owner.UseWaitCursor = true; owner.Enabled = false; //if (null == cm) // cm = new clsMCI(); if (_Instance == null) { _Instance = new frmWaiting(showmess); } _Instance.Owner = owner; _Instance.Show(); //if (File.Exists("国际歌.wma")) //{ // cm.FileName = "国际歌.wma"; // cm.play(); //} Application.DoEvents(); }
public static void Show(Form owner) { owner.UseWaitCursor = true; owner.Enabled = false; //if (null == cm) // cm = new clsMCI(); if (_Instance == null) { _Instance = new frmWaiting(); } // _Instance.thdSub = new Thread(new ThreadStart(ThreadFun)); // _Instance.timer1.Interval = 1000; _Instance.Owner = owner; _Instance.Show(); // _Instance.timer1.Start(); //if (File.Exists("国际歌.wma")) //{ // cm.FileName = "国际歌.wma"; // cm.play(); //} Application.DoEvents(); }
public static void Show(Form owner, bool disableOwner) { owner.UseWaitCursor = true; owner.Enabled = !disableOwner; if (_Instance == null) { _Instance = new frmWaiting(); } _Instance.Owner = owner; _Instance.Show(); Application.DoEvents(); }
public static void Hide(Form owner) { //cm.StopT(); owner.UseWaitCursor = false; owner.Enabled = true; //_Instance.timer1.Stop(); if (_Instance != null) { _Instance.Hide(); _Instance.Dispose(true); } _Instance = null; Application.DoEvents(); }