Example #1
0
 protected override void Initialize()
 {
     base.Initialize();
     Control = sw.Application.Current;
     if (Control == null)
     {
         Control = new sw.Application {
             ShutdownMode = sw.ShutdownMode.OnExplicitShutdown
         };
         System.Windows.Forms.Application.EnableVisualStyles();
     }
     instance         = this;
     Control.Startup += HandleStartup;
 }
Example #2
0
 public void Invoke(Action action)
 {
     ApplicationHandler.InvokeIfNecessary(action);
 }