Ejemplo n.º 1
0
        private void application_Startup(object sender, StartupEventArgs e)
        {
            try
            {
                Global.data = Global.data.load(Global.data, "Data/Data.ntp");

                if (Global.data.parameterSettings.splashScreenDisabled == false)
                {
                    SplashScreen splashScreen = new SplashScreen();
                    splashScreen.Show();
                }
                else
                {
                    HomeScreen homeScreen = new HomeScreen();
                    homeScreen.Show();
                }
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
                this.Shutdown();
            }
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.homeScreen = ((WeSplit.HomeScreen)(target));

            #line 18 "..\..\HomeScreen.xaml"
                this.homeScreen.Closed += new System.EventHandler(this.homeScreenWindow_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.titleBar = ((System.Windows.Controls.Grid)(target));

            #line 30 "..\..\HomeScreen.xaml"
                this.titleBar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.titleBar_MouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.aboutButton = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\HomeScreen.xaml"
                this.aboutButton.Click += new System.Windows.RoutedEventHandler(this.aboutButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.settingsButton = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\HomeScreen.xaml"
                this.settingsButton.Click += new System.Windows.RoutedEventHandler(this.settingsButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.minimizeWindowButton = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\HomeScreen.xaml"
                this.minimizeWindowButton.Click += new System.Windows.RoutedEventHandler(this.minimizeWindowButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.maximizeWindowButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 44 "..\..\HomeScreen.xaml"
                this.maximizeWindowButton.Checked += new System.Windows.RoutedEventHandler(this.maximizeWindowButton_Checked);

            #line default
            #line hidden

            #line 45 "..\..\HomeScreen.xaml"
                this.maximizeWindowButton.Unchecked += new System.Windows.RoutedEventHandler(this.maximizeWindowButton_Unchecked);

            #line default
            #line hidden
                return;

            case 7:
                this.closeWindowButton = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\HomeScreen.xaml"
                this.closeWindowButton.Click += new System.Windows.RoutedEventHandler(this.closeWindowButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.menuButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 9:
                this.mainGrid = ((System.Windows.Controls.Grid)(target));

            #line 107 "..\..\HomeScreen.xaml"
                this.mainGrid.MouseEnter += new System.Windows.Input.MouseEventHandler(this.mainGrid_MouseEnter);

            #line default
            #line hidden
                return;

            case 10:
                this.navigationGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.navigationListView = ((System.Windows.Controls.ListView)(target));

            #line 120 "..\..\HomeScreen.xaml"
                this.navigationListView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.navigationListView_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }