public ServiceScreenBlocker() { Thread t = new Thread(runForm); screen = new BlockerForm(); t.Start(); // System.Threading.Thread.Sleep(200); // screen.unblock(); }
private void runForm() { screen = new BlockerForm(); screen.ShowDialog(); }