Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FileMode = ((RandotronWPF.FileModeWindow)(target));

            #line 10 "..\..\FileMode.xaml"
                this.FileMode.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 "..\..\FileMode.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 "..\..\FileMode.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.PreText = ((System.Windows.Controls.Label)(target));
                return;

            case 8:

            #line 77 "..\..\FileMode.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PreBtnClicked);

            #line default
            #line hidden
                return;

            case 9:
                this.CurText = ((System.Windows.Controls.Label)(target));
                return;

            case 10:

            #line 94 "..\..\FileMode.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NxtBtnClicked);

            #line default
            #line hidden
                return;

            case 11:
                this.NxtText = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.ProgressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 13:
                this.PopUpBar = ((MaterialDesignThemes.Wpf.Snackbar)(target));
                return;

            case 14:
                this.PopUpBarMessage = ((MaterialDesignThemes.Wpf.SnackbarMessage)(target));

            #line 112 "..\..\FileMode.xaml"
                this.PopUpBarMessage.ActionClick += new System.Windows.RoutedEventHandler(this.PopUpBarConfirmed);

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