Exemple #1
0
 public static void Main()
 {
     if (SingleInstance <App> .InitializeAsFirstInstance(RunningVersion.IsDevelopmentPrototype?DevinstanceUniqueName:InstanceUniqueName))
     {
         GadrocsWorkshop.Helios.ControlCenter.App app = new GadrocsWorkshop.Helios.ControlCenter.App();
         app.InitializeComponent();
         app.Run();
         SingleInstance <App> .Cleanup();
     }
 }
Exemple #2
0
        public static void Main()
        {
            if (SingleInstance <App> .InitializeAsFirstInstance(InstanceUniqueName))
            {
                //SplashScreen splashScreen = null;

                //splashScreen = new SplashScreen("splash_logo.png");
                //splashScreen.Show(false);
                GadrocsWorkshop.Helios.ControlCenter.App app = new GadrocsWorkshop.Helios.ControlCenter.App();
                app.InitializeComponent();
                //Thread.Sleep(1000);
                //splashScreen.Close(TimeSpan.FromMilliseconds(500));
                app.Run();
                SingleInstance <App> .Cleanup();
            }
        }
Exemple #3
0
        public static void Main()
        {
            if (SingleInstance<App>.InitializeAsFirstInstance(InstanceUniqueName))
            {
                SplashScreen splashScreen = null;

                splashScreen = new SplashScreen("splash_logo.png");
                splashScreen.Show(false);
                GadrocsWorkshop.Helios.ControlCenter.App app = new GadrocsWorkshop.Helios.ControlCenter.App();
                app.InitializeComponent();
                Thread.Sleep(1000);
                splashScreen.Close(TimeSpan.FromMilliseconds(500));
                app.Run();

                SingleInstance<App>.Cleanup();
            }
        }