Example #1
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("splash.png");
     splashScreen.Show(true);
     Microsoft.Practices.EnterpriseLibrary.Configuration.Console.App app = new Microsoft.Practices.EnterpriseLibrary.Configuration.Console.App();
     app.InitializeComponent();
     app.Run();
 }
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("image/splash.jpg");
     splashScreen.Show(true);
     EducationsCourses.App app = new EducationsCourses.App();
     app.InitializeComponent();
     app.Run();
 }
Example #3
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("osschedulerscreen.png");
     splashScreen.Show(true);
     OSScheduler.App app = new OSScheduler.App();
     app.InitializeComponent();
     app.Run();
 }
Example #4
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("resources/logo%2050%20aniversario.jpg");
     splashScreen.Show(true);
     Geoton.App app = new Geoton.App();
     app.InitializeComponent();
     app.Run();
 }
Example #5
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("bea-cukai2.jpg");
     splashScreen.Show(true);
     PAU.App app = new PAU.App();
     app.InitializeComponent();
     app.Run();
 }
Example #6
0
        protected override void OnStartup(StartupEventArgs e)
        {
            if (!SingleInstance.InitializeAsFirstInstance(SignalExternalCommandLineArgs))
                Environment.Exit(0);

            var appSplash = new SplashScreen("splash.png");
            appSplash.Show(false);
            {
                base.OnStartup(e);
                Config.ShowConsole = true;
                Context.Startup();
            }
            appSplash.Close(TimeSpan.FromMilliseconds(300));

            if (false)
            {
                ShutdownMode = ShutdownMode.OnExplicitShutdown;
                Context.ProcessingQueueEmpty += Shutdown;

                Context.Log += OnLog;
                Context.ProcessingProcessChanged += OnProcessingProcessChanged;
                Context.ProcessingProgressChanged += OnProcessingProgressChanged;
            }
            else
            {
                ShowMainWindow();
            }

            HandleArgs(e.Args);
        }
Example #7
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("inicio.png");
     splashScreen.Show(true);
     Aprender_Teclado.App app = new Aprender_Teclado.App();
     app.InitializeComponent();
     app.Run();
 }
Example #8
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("resources/logo%20design%20-%202_splashscreen%20new%20(paddy).jpg");
     splashScreen.Show(true);
     ComCon.App app = new ComCon.App();
     app.InitializeComponent();
     app.Run();
 }
Example #9
0
 protected override void OnStartup(StartupEventArgs e)
 {
     LicenseProvider.Verify();
     SplashScreen splashScreen = new SplashScreen("Images/splash_screen.png");
     splashScreen.Show(true);
     base.OnStartup(e);
 }
Example #10
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("images/splashscreen.png");
     splashScreen.Show(true);
     APOD_Controller.App app = new APOD_Controller.App();
     app.InitializeComponent();
     app.Run();
 }
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("resources/splashscreen.jpg");
     splashScreen.Show(true);
     QuizGame.App app = new QuizGame.App();
     app.InitializeComponent();
     app.Run();
 }
Example #12
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("splash.png");
     splashScreen.Show(true);
     TCHusada.App app = new TCHusada.App();
     app.InitializeComponent();
     app.Run();
 }
Example #13
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("resources/splashscreen.png");
     splashScreen.Show(true);
     Blasig.Labirint.GUI.App app = new Blasig.Labirint.GUI.App();
     app.InitializeComponent();
     app.Run();
 }
Example #14
0
        /* Constructor
         *
         * Initializes the window and calls the data provider to initialize
         * airports lists. Creates the autocomplete boxes. In case the connection
         * to the database is unavailable, displays an information and exits.
         */
        public MainWindow()
        {
            SplashScreen splash = new SplashScreen("SplashScreen.png");
            splash.Show(true);
            InitializeComponent();
            try
            {
                EtosPRODataProvider provider = new EtosPRODataProvider(this);
                airportsFullList = provider.GetFullAirportsList();
                airportCodes = provider.GetAirportsCodesList();

                SearchDepartureBox = new AutoCompleteBox();
                SearchDepartureBox.FilterMode = AutoCompleteFilterMode.Contains;
                SearchDepartureBox.ItemsSource = airportsFullList;
                SearchDeparturePanel.Children.Add(SearchDepartureBox);

                SearchArrivalBox = new AutoCompleteBox();
                SearchArrivalBox.FilterMode = AutoCompleteFilterMode.Contains;
                SearchArrivalBox.ItemsSource = airportsFullList;
                SearchArrivalPanel.Children.Add(SearchArrivalBox);
            }
            catch (SqlException e)
            {
                splash.Close(TimeSpan.Zero);
                ErrorWindow error = new ErrorWindow("Could not connect to the server! The application will exit.\n\n" +
                                                    "Verify your connection or contact the developers.");
                error.Show();
                this.Hide();
            }
            splash.Close(TimeSpan.FromSeconds(1));
        }
Example #15
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("splashscreen1.png");
     splashScreen.Show(true);
     EERIL.ControlSystem.App app = new EERIL.ControlSystem.App();
     app.InitializeComponent();
     app.Run();
 }
Example #16
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("ezygoezysplash.jpg");
     splashScreen.Show(true);
     GUI_for_0._1.App app = new GUI_for_0._1.App();
     app.InitializeComponent();
     app.Run();
 }
Example #17
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("resources/images/woofwoof.jpg");
     splashScreen.Show(true);
     N***a.App app = new N***a.App();
     app.InitializeComponent();
     app.Run();
 }
Example #18
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("install_spl.jpg");
     splashScreen.Show(true);
     LEDX.App app = new LEDX.App();
     app.InitializeComponent();
     app.Run();
 }
Example #19
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("splash.jpg");
     splashScreen.Show(true);
     ITVDN_ADO.NET_Task8.App app = new ITVDN_ADO.NET_Task8.App();
     app.InitializeComponent();
     app.Run();
 }
Example #20
0
		public static void Main()
		{
			if (SingleInstance<App>.InitializeAsFirstInstance(AppName))
			{
				XmlConfigurator.Configure();
				s_log = LogManager.GetLogger(typeof(App));
				AppDomain.CurrentDomain.UnhandledException += Application_DispatcherUnhandledException;
				if (ApplicationDeployment.IsNetworkDeployed)
				{
					AppVersion = ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(4);
					s_log.Info("Configure crash reports");
				}

				s_log.Info("Displaying splash screen");
				SplashScreen splashScreen = new SplashScreen("Images/logo.png");
				splashScreen.Show(true);

				s_log.Info("Starting Jenkins Build Monitor...");
				App application = new App();
				application.InitializeComponent();
				application.Run();

				// Allow single instance code to perform cleanup operations
				s_log.Info("Cleaning up single instance app...");
				SingleInstance<App>.Cleanup();
			}
		}
        private static bool IsBuilderConnectionUnavailable()
        {
            if (ConfigurationManager.ConnectionStrings["Builder"] == null)
             {
            MessageBox.Show(
               "Connection to Builder database was missed in configuration file." + Environment.NewLine +
               "Please check app.config file.", "Configuration error", MessageBoxButton.OK, MessageBoxImage.Exclamation);
            return true;
             }

             var splashScreen = new SplashScreen("Resources/splash.png");
             try
             {
            splashScreen.Show(false);
            using (
               var connection =
                  SqlConnectionHelper.OpenConnection(ConfigurationManager.ConnectionStrings["Builder"].ConnectionString)
               )
            {
            }
            splashScreen.Close(TimeSpan.FromSeconds(0));
             }
             catch (Exception)
             {
            splashScreen.Close(TimeSpan.FromSeconds(0));
            MessageBox.Show(
               "Connection to Builder database not available." + Environment.NewLine + "Please check app.config file.",
               "Configuration error", MessageBoxButton.OK, MessageBoxImage.Exclamation);
            return true;
             }
             return false;
        }
Example #22
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("images/splash.png");
     splashScreen.Show(true);
     Assignment.App app = new Assignment.App();
     app.InitializeComponent();
     app.Run();
 }
Example #23
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("media/splashscreenf.png");
     splashScreen.Show(true);
     lb7.App app = new lb7.App();
     app.InitializeComponent();
     app.Run();
 }
Example #24
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("resources/splash.jpg");
     splashScreen.Show(true);
     YGOProDevelop.App app = new YGOProDevelop.App();
     app.InitializeComponent();
     app.Run();
 }
Example #25
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("splashscreen.png");
     splashScreen.Show(true);
     inventory.App app = new inventory.App();
     app.InitializeComponent();
     app.Run();
 }
Example #26
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("resources/poster%20ri%20500.jpg");
     splashScreen.Show(true);
     Geoton.App app = new Geoton.App();
     app.InitializeComponent();
     app.Run();
 }
Example #27
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("resources/icon.ico");
     splashScreen.Show(true);
     CloudManagerUI.App app = new CloudManagerUI.App();
     app.InitializeComponent();
     app.Run();
 }
Example #28
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("images/splashscreen.png");
     splashScreen.Show(true);
     TreasureHuntDesktopApplication.FullClient.App app = new TreasureHuntDesktopApplication.FullClient.App();
     app.InitializeComponent();
     app.Run();
 }
Example #29
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("images/start1.7.png");
     splashScreen.Show(true);
     WaterMark_DB1._6.App app = new WaterMark_DB1._6.App();
     app.InitializeComponent();
     app.Run();
 }
Example #30
0
 public static void Main() {
     SplashScreen splashScreen = new SplashScreen("splashscreen2.png");
     splashScreen.Show(true);
     Modelisator.App app = new Modelisator.App();
     app.InitializeComponent();
     app.Run();
 }
Example #31
0
        ///<summary>
        /// Shows the given window as splash screen.
        ///</summary>
        /// <remarks>
        /// <para>
        /// If <c>data</c> is set, it is set as datacontext of the splash screen.
        /// </para>
        /// <para>
        /// if <c>splashImage</c> is set (to a resource path within the assembly), the image is taken as splash screen for an intermediate
        /// <see cref="SplashScreen"/> which is shown before the WPF splashcreen is initialized. make sure to use the same image as background
        /// for the WPF splash window, then the WPF  image is blended over the first splash image seamlessly.
        /// This makes it possible to bridge the short time between the simple splash is shown until WPF is initialized.</para>
        /// </remarks>
        public static void Show <TSplashWindow>(object data = null, string splashImage = null) where TSplashWindow : SplashScreenWindow, new()
        {
            System.Windows.SplashScreen SplashScreen = null;
            if (splashImage != null)
            {
                SplashScreen = new System.Windows.SplashScreen(splashImage);
                SplashScreen.Show(false);
            }
            SplashScreenWindow View = null;
            ManualResetEvent   SplashScreenReady = new ManualResetEvent(false);
            Thread             SplashThread      = new Thread((ThreadStart) delegate
            {
                View       = new TSplashWindow();
                View.Model = data;
                View.Show();
                SplashScreenReady.Set();
                Dispatcher.Run();
            });

            SplashThread.SetApartmentState(ApartmentState.STA);
            SplashThread.IsBackground = true;
            SplashThread.Start();

            SplashScreenReady.WaitOne();

            if (SplashScreen != null)
            {
                SplashScreen.Close(TimeSpan.Zero);
            }
            Dispatcher.CurrentDispatcher.BeginInvoke(
                DispatcherPriority.Loaded,
                (Action) delegate
            {
                View.Dispatcher.Invoke(DispatcherPriority.Normal, (Action)View.Close);
            });
        }
Example #32
0
        public static void Show()
        {
            var s = new System.Windows.SplashScreen(typeof(SplashScreen).Assembly, "splashscreen.png");

            s.Show(true);
        }
Example #33
0
        static void Main()
        {
            //Get the splash screen graphic
            System.Windows.SplashScreen EngineSplashScreen = new System.Windows.SplashScreen("Resources/SplashScreen.jpg");
            EngineSplashScreen.Show(true);//Show splash screen

            // initialize the main engine form
            EngineMessage("Intializing Pixel Engine", eEngineMessageType.NONE);
            form = new Form1();
            form.Show(); // show our form

            LoadCfg();   //Load config files

            DrawingSurface rendersurface = new DrawingSurface();

            rendersurface.Size     = new System.Drawing.Size(form.Width, form.Height);
            rendersurface.Location = new System.Drawing.Point(0, 0);
            form.Controls.Add(rendersurface);

            EngineMessage("Pixel Engine Ready!", eEngineMessageType.CONFIRM);

            // initialize sfml
            SFML.Graphics.RenderWindow renderwindow = new SFML.Graphics.RenderWindow(rendersurface.Handle);
            //Main cam
            SFML.Graphics.View mainRenderView = new SFML.Graphics.View(new FloatRect(0, 0, 1920, 1080));
            renderwindow.SetView(mainRenderView);
            //UI Cam
            SFML.Graphics.View uiRenderView = new SFML.Graphics.View(new FloatRect(0, 0, 1920, 1080));

            _scene = new EditorScene(renderwindow, mainRenderView);

            //Initialize the resources form
            resourcesForm          = new ResourcesForm();
            resourcesForm.Size     = new System.Drawing.Size(800, 600);
            resourcesForm.Location = new System.Drawing.Point(form.Location.X + form.Width, form.Location.Y);
            resourcesForm.Show();
            resourcesForm.Disposed += new EventHandler(DisposedResourceForm);

            //Debug: create sprite
            PixelEngineProj.Gameplay.PixelSprite newSprite = new PixelEngineProj.Gameplay.PixelSprite("Resources/SpriteIcon.png", new IntRect(0, 0, 128, 128), new Vector2f(0, 0));
            newSprite.Position = new Vector2f(0, 0);

            Text t = new Text("Testing", new Font("Resources/pixelmix.ttf"));

            // drawing loop
            while (form.Visible)
            {
                System.Windows.Forms.Application.DoEvents();
                renderwindow.DispatchEvents();
                renderwindow.Clear(new SFML.Graphics.Color(40, 40, 40));

                //Draw main scene
                renderwindow.SetView(mainRenderView);
                _scene.Draw(renderwindow);

                renderwindow.SetView(uiRenderView);

                //Draw engine text
                renderwindow.SetView(uiRenderView);
                t.Position = new Vector2f(1700, 100);
                t.Draw(renderwindow, RenderStates.Default);

                renderwindow.Display();
                rendersurface.Size = new System.Drawing.Size(form.Width - 300, form.Height);
            }
        }