private void ModeSelectorChange(object sender, RoutedEventArgs e) { if (ModeSelector.SelectedIndex == 0) { return; } if (ModeSelector.SelectedIndex == 1) { FileModeWindow Fmw = new FileModeWindow(); Fmw.Show(); this.Close(); } if (ModeSelector.SelectedIndex == 2) { PhotoModeWindow Pmw = new PhotoModeWindow(); Pmw.Show(); this.Close(); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PhotoMode = ((RandotronWPF.PhotoModeWindow)(target)); #line 10 "..\..\PhotoMode.xaml" this.PhotoMode.KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden return; case 2: this.FocusBox = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.label = ((System.Windows.Controls.Label)(target)); return; case 4: this.FileBtn = ((System.Windows.Controls.Button)(target)); #line 37 "..\..\PhotoMode.xaml" this.FileBtn.Click += new System.Windows.RoutedEventHandler(this.FileModeConfirmed); #line default #line hidden return; case 5: this.ModeSelector = ((System.Windows.Controls.ComboBox)(target)); #line 51 "..\..\PhotoMode.xaml" this.ModeSelector.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ModeSelectorChange); #line default #line hidden return; case 6: this.StuGrid = ((System.Windows.Controls.Grid)(target)); return; case 7: this.PreImage = ((System.Windows.Controls.Image)(target)); return; case 8: #line 73 "..\..\PhotoMode.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PreBtnClicked); #line default #line hidden return; case 9: this.CurImage = ((System.Windows.Controls.Image)(target)); return; case 10: #line 87 "..\..\PhotoMode.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NxtBtnClicked); #line default #line hidden return; case 11: this.NxtImage = ((System.Windows.Controls.Image)(target)); return; case 12: this.ProgressBar = ((System.Windows.Controls.ProgressBar)(target)); #line 95 "..\..\PhotoMode.xaml" this.ProgressBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ProgressBar_ValueChanged); #line default #line hidden return; case 13: this.PopUpBar = ((MaterialDesignThemes.Wpf.Snackbar)(target)); return; case 14: this.PopUpBarMessage = ((MaterialDesignThemes.Wpf.SnackbarMessage)(target)); #line 101 "..\..\PhotoMode.xaml" this.PopUpBarMessage.ActionClick += new System.Windows.RoutedEventHandler(this.PopUpBarConfirmed); #line default #line hidden return; } this._contentLoaded = true; }