Ejemplo n.º 1
0
 public static void InitializeInternalLogViewer()
 {
     if (!initialized)
     {
         initialized           = true;
         viewer                = new InternalLogViewer();
         handleCreated         = new ManualResetEvent(false);
         viewer.HandleCreated += (sender, e) => handleCreated.Set();
         Task.Run(() => Application.Run(viewer)).Forget();
         handleCreated.WaitOne();
     }
 }
Ejemplo n.º 2
0
		public static void InitializeInternalLogViewer()
		{
			if (!initialized)
			{
				initialized = true;
				viewer = new InternalLogViewer();
				handleCreated = new ManualResetEvent(false);
				viewer.HandleCreated += (sender, e) => handleCreated.Set();
				Task.Factory.StartNew(() => Application.Run(viewer));
				handleCreated.WaitOne();
			}
		}
 public static void InitializeInternalLogViewer()
 {
     if (!initialized)
     {
         initialized           = true;
         viewer                = new InternalLogViewer();
         handleCreated         = new ManualResetEvent(false);
         viewer.HandleCreated += (sender, e) => handleCreated.Set();
         //Task.Factory.StartNew(() => Application.Run(viewer));
         new Thread(() => Application.Run(viewer)).Start();
         handleCreated.WaitOne();
     }
 }