Пример #1
0
        private void NewThreadMethod(object @params)
        {
            TaskDialogLockSystemParameters p = (TaskDialogLockSystemParameters)@params;

            Native.SetThreadDesktop(p.NewDesktop);
            using (Form f = new BackgroundForm(p.Background))
            {
                f.Show();
                ShowInternal(f);
                f.BackgroundImage = null;
                Application.DoEvents();
                Thread.Sleep(250);
            }
        }
Пример #2
0
 private void NewThreadMethod(object @params)
 {
     TaskDialogLockSystemParameters p = (TaskDialogLockSystemParameters)@params;
     Native.SetThreadDesktop(p.NewDesktop);
     using (Form f = new BackgroundForm(p.Background))
     {
         f.Show();
         ShowInternal(f);
         f.BackgroundImage = null;
         Application.DoEvents();
         Thread.Sleep(250);
     }
 }