Пример #1
0
        public static void Start(string message)
        {
            //Start once
            if (ms_Thread != null)
            {
                return;
            }

            ms_Thread = new Thread(() =>
            {
                LockForm form = new LockForm();
                form.Message  = message;
                ms_This       = form.Handle;
                Application.Run(form);
            })
            {
                IsBackground = true
            };
            ms_Thread.Start();
        }
Пример #2
0
 public void Unlock()
 {
     LockForm.Stop();
     UnLocked = true;
     Invalidate(true);
 }
Пример #3
0
 public void Lock()
 {
     LockForm.Start("Use Ctrl-L to unlock the window");
     UnLocked = false;
     Invalidate(true);
 }