Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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();
        }