private void skipButton_Click(object sender, RoutedEventArgs e) { dispatcherTimer.Stop(); this.Hide(); MainScreen mainScreen = new MainScreen(); mainScreen.Show(); Global.data.parameterSettings.splashScreenDisabled = disabledSplash; this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainScreen = ((CakeShop.MainScreen)(target)); #line 19 "..\..\MainScreen.xaml" this.mainScreen.Loaded += new System.Windows.RoutedEventHandler(this.mainScreen_Loaded); #line default #line hidden #line 20 "..\..\MainScreen.xaml" this.mainScreen.Closed += new System.EventHandler(this.mainScreen_Closed); #line default #line hidden return; case 2: this.titleBar = ((System.Windows.Controls.Grid)(target)); #line 28 "..\..\MainScreen.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 "..\..\MainScreen.xaml" this.aboutButton.Click += new System.Windows.RoutedEventHandler(this.settingsButton_Click); #line default #line hidden return; case 4: this.settingsButton = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\MainScreen.xaml" this.settingsButton.Click += new System.Windows.RoutedEventHandler(this.aboutButton_Click); #line default #line hidden return; case 5: this.minimizeWindowButton = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\MainScreen.xaml" this.minimizeWindowButton.Click += new System.Windows.RoutedEventHandler(this.minimizeWindowButton_Click); #line default #line hidden return; case 6: this.closeWindowButton = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\MainScreen.xaml" this.closeWindowButton.Click += new System.Windows.RoutedEventHandler(this.closeWindowButton_Click); #line default #line hidden return; case 7: this.menuButton = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 8: this.mainGrid = ((System.Windows.Controls.Grid)(target)); return; case 9: this.menuBox = ((System.Windows.Controls.ListBox)(target)); #line 91 "..\..\MainScreen.xaml" this.menuBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.menuBox_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }