Inheritance: System.Windows.Controls.ItemsControl
 public ModelHelpers(IBackend gallifrey, FlyoutsControl flyoutsControl)
 {
     this.flyoutsControl = flyoutsControl;
     Gallifrey = gallifrey;
     DialogContext = new DialogContext();
     openFlyouts = new List<OpenFlyoutDetails>();
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.flyoutsControl = ((MahApps.Metro.Controls.FlyoutsControl)(target));
                return;

            case 2:
                this.settingsFlyout = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 3:
                this.PeopleName = ((System.Windows.Controls.TextBox)(target));

            #line 40 "..\..\..\Views\StudentCIView.xaml"
                this.PeopleName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.PeopleName_TextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.Record = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ShellWindow"/> class.
        /// </summary>
        public ShellWindow()
        {
            var serviceLocator = ServiceLocator.Default;

            var themeService = serviceLocator.ResolveType<IThemeService>();
            ThemeHelper.EnsureApplicationThemes(GetType().Assembly, themeService.ShouldCreateStyleForwarders());

            MahAppsHelper.ApplyTheme();

            InitializeComponent();

            serviceLocator.RegisterInstance(pleaseWaitProgressBar, "pleaseWaitService");

            var accentColorBrush = ThemeHelper.GetAccentColorBrush();
            border.BorderBrush = accentColorBrush;

            var statusService = serviceLocator.ResolveType<IStatusService>();
            statusService.Initialize(statusTextBlock);

            var commandManager = serviceLocator.ResolveType<ICommandManager>();
            var flyoutService = serviceLocator.ResolveType<IFlyoutService>();
            var mahAppsService = serviceLocator.ResolveType<IMahAppsService>();

            serviceLocator.RegisterInstance<IAboutInfoService>(mahAppsService);

            var flyouts = new FlyoutsControl();
            foreach (var flyout in flyoutService.GetFlyouts())
            {
                flyouts.Items.Add(flyout);
            }

            Flyouts = flyouts;

            var windowCommands = mahAppsService.GetRightWindowCommands();

            if (mahAppsService.GetAboutInfo() != null)
            {
                var aboutWindowCommand = WindowCommandHelper.CreateWindowCommandButton("appbar_information", "about");

                var aboutService = serviceLocator.ResolveType<IAboutService>();
                commandManager.RegisterAction("Help.About", aboutService.ShowAbout);
                aboutWindowCommand.Command = commandManager.GetCommand("Help.About");

                windowCommands.Items.Add(aboutWindowCommand);
            }

            RightWindowCommands = windowCommands;

            var statusBarContent = mahAppsService.GetStatusBar();
            if (statusBarContent != null)
            {
                customStatusBarItem.Content = statusBarContent;
            }

            var mainView = mahAppsService.GetMainView();
            contentControl.Content = mainView;

            SetBinding(TitleProperty, new Binding("ViewModel.Title") { Source = mainView });
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ContainerGrid = ((MahApps.Metro.Controls.FlyoutsControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ShellWindow"/> class.
        /// </summary>
        public ShellWindow()
            : base(DataWindowMode.Custom, setOwnerAndFocus: false)
        {
            var serviceLocator = ServiceLocator.Default;

            InitializeComponent();

            statusBar.Background = ThemeHelper.GetAccentColorBrush(AccentColorStyle.AccentColor4);

            serviceLocator.RegisterInstance(pleaseWaitProgressBar, "pleaseWaitService");

            var statusService = serviceLocator.ResolveType<IStatusService>();
            statusService.Initialize(statusTextBlock);

            var commandManager = serviceLocator.ResolveType<ICommandManager>();
            var flyoutService = serviceLocator.ResolveType<IFlyoutService>();
            var mahAppsService = serviceLocator.ResolveType<IMahAppsService>();

            serviceLocator.RegisterInstance<IAboutInfoService>(mahAppsService);

            var flyouts = new FlyoutsControl();
            foreach (var flyout in flyoutService.GetFlyouts())
            {
                flyouts.Items.Add(flyout);
            }

            Flyouts = flyouts;

            var windowCommands = mahAppsService.GetRightWindowCommands();

            if (mahAppsService.GetAboutInfo() != null)
            {
                var aboutWindowCommand = WindowCommandHelper.CreateWindowCommandButton("appbar_information", "about");

                var aboutService = serviceLocator.ResolveType<IAboutService>();
                commandManager.RegisterAction("Help.About", aboutService.ShowAbout);
                aboutWindowCommand.Command = commandManager.GetCommand("Help.About");

                windowCommands.Items.Add(aboutWindowCommand);
            }

            RightWindowCommands = windowCommands;

            var statusBarContent = mahAppsService.GetStatusBar();
            if (statusBarContent != null)
            {
                customStatusBarItem.Content = statusBarContent;
            }

            var mainView = mahAppsService.GetMainView();
            contentControl.Content = mainView;

            SetBinding(TitleProperty, new Binding("ViewModel.Title")
            {
                Source = mainView
            });
        }
Exemple #6
0
 protected internal void CleanUp(FlyoutsControl flyoutsControl)
 {
     if (this.windowTitleThumb != null)
     {
         this.windowTitleThumb.DragDelta          -= this.WindowTitleThumbMoveOnDragDelta;
         this.windowTitleThumb.MouseDoubleClick   -= this.WindowTitleThumbChangeWindowStateOnMouseDoubleClick;
         this.windowTitleThumb.MouseRightButtonUp -= this.WindowTitleThumbSystemMenuOnMouseRightButtonUp;
     }
     this.parentWindow = null;
 }
Exemple #7
0
 protected internal void CleanUp(FlyoutsControl flyoutsControl)
 {
     if (this.windowTitleThumb != null)
     {
         this.windowTitleThumb.PreviewMouseLeftButtonUp -= new MouseButtonEventHandler(this.WindowTitleThumbOnPreviewMouseLeftButtonUp);
         this.windowTitleThumb.DragDelta          -= new DragDeltaEventHandler(this.WindowTitleThumbMoveOnDragDelta);
         this.windowTitleThumb.MouseDoubleClick   -= new MouseButtonEventHandler(this.WindowTitleThumbChangeWindowStateOnMouseDoubleClick);
         this.windowTitleThumb.MouseRightButtonUp -= new MouseButtonEventHandler(this.WindowTitleThumbSystemMenuOnMouseRightButtonUp);
     }
     this.parentWindow = null;
 }
Exemple #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.flyoutsControlRegion = ((MahApps.Metro.Controls.FlyoutsControl)(target));
                return;

            case 2:
                this.rightWindowCommandsRegion = ((MahApps.Metro.Controls.WindowCommands)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #9
0
        protected internal void CleanUp(FlyoutsControl flyoutsControl)
        {
            var thumbContentControl = this.flyoutHeader as IMetroThumb;

            if (thumbContentControl != null)
            {
                thumbContentControl.DragStarted              -= this.WindowTitleThumbOnDragStarted;
                thumbContentControl.DragCompleted            -= this.WindowTitleThumbOnDragCompleted;
                thumbContentControl.PreviewMouseLeftButtonUp -= this.WindowTitleThumbOnPreviewMouseLeftButtonUp;
                thumbContentControl.DragDelta          -= this.WindowTitleThumbMoveOnDragDelta;
                thumbContentControl.MouseDoubleClick   -= this.WindowTitleThumbChangeWindowStateOnMouseDoubleClick;
                thumbContentControl.MouseRightButtonUp -= this.WindowTitleThumbSystemMenuOnMouseRightButtonUp;
            }
            this.parentWindow = null;
        }
Exemple #10
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            _dataContext.ShowDefaultCharts();
            Flyouts = new FlyoutsControl();
            Flyout control = new Flyout();
            _lineEditorView = new ucLineEditorView(Token);
            _lineEditorView.DataContext = new LineEditorViewModel(Token);
            GlobalDataModel.LineEditorViewModel = _lineEditorView.DataContext as LineEditorViewModel;
            control.Content = _lineEditorView;

            control.Position = Position.Right;
            control.Width = 195;
            control.IsOpenChanged += control_IsOpenChanged;
            Flyouts.Items.Add(control);
        }
Exemple #11
0
        private void UpdateFlyoutTheme()
        {
            FlyoutsControl flyoutsControl = this.TryFindParent <FlyoutsControl>();

            if (DesignerProperties.GetIsInDesignMode(this))
            {
                base.Visibility = (flyoutsControl != null ? System.Windows.Visibility.Collapsed : System.Windows.Visibility.Visible);
            }
            MetroWindow parentWindow = this.ParentWindow;

            if (parentWindow != null)
            {
                Tuple <AppTheme, Accent> tuple = Flyout.DetectTheme(this);
                if (tuple != null && tuple.Item2 != null)
                {
                    this.ChangeFlyoutTheme(tuple.Item2, tuple.Item1);
                }
                if (flyoutsControl != null && this.IsOpen)
                {
                    flyoutsControl.HandleFlyoutStatusChange(this, parentWindow);
                }
            }
        }
Exemple #12
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.PrincipalScreen1 = ((sistemaCorporativo.FORMS.principalScreen.PrincipalScreen)(target));
     
     #line 12 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     this.PrincipalScreen1.Loaded += new System.Windows.RoutedEventHandler(this.PrincipalScreen1_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.btnPerfil = ((System.Windows.Controls.Button)(target));
     
     #line 103 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     this.btnPerfil.Click += new System.Windows.RoutedEventHandler(this.btnPerfil_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.grdPrincipal = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.grdPrincipal1 = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     
     #line 162 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_2);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 168 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_3);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 174 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_4);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 180 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_1);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 186 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 204 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 205 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaAnonMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 206 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OcorrenciaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 208 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 209 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AgenteMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 210 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ViaturaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.FlyoutPrincipal = ((MahApps.Metro.Controls.FlyoutsControl)(target));
     return;
     case 17:
     this.flyoutAgente = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 18:
     this.btnFzrLogoff = ((System.Windows.Controls.Button)(target));
     
     #line 233 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     this.btnFzrLogoff.Click += new System.Windows.RoutedEventHandler(this.btnFzrLogoff_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.tgsTema = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 234 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     this.tgsTema.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.tgsTema_Checked);
     
     #line default
     #line hidden
     
     #line 234 "..\..\..\..\FORMS\PrincipalScreen.xaml"
     this.tgsTema.IsCheckedChanged += new System.EventHandler(this.tgsTema_IsCheckedChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PrincipalScreen1 = ((sistemaCorporativo.FORMS.principalScreen.PrincipalScreen)(target));

            #line 13 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.PrincipalScreen1.Loaded += new System.Windows.RoutedEventHandler(this.PrincipalScreen1_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.btnPerfil = ((System.Windows.Controls.Button)(target));

            #line 119 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.btnPerfil.Click += new System.Windows.RoutedEventHandler(this.btnPerfil_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.grdPrincipal = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.grdDockbar = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.txbDatabase = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.txbDataHora = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.grdPrincipal1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.tileInvestigacao = ((MahApps.Metro.Controls.Tile)(target));

            #line 185 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tileInvestigacao.Click += new System.Windows.RoutedEventHandler(this.TileInvestigacao_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.tileDenuncia = ((MahApps.Metro.Controls.Tile)(target));

            #line 191 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tileDenuncia.Click += new System.Windows.RoutedEventHandler(this.TileDenuncia_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.tileCadUnidade = ((MahApps.Metro.Controls.Tile)(target));

            #line 198 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tileCadUnidade.Click += new System.Windows.RoutedEventHandler(this.tileCadUnidade_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.tileViatura = ((MahApps.Metro.Controls.Tile)(target));

            #line 205 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tileViatura.Click += new System.Windows.RoutedEventHandler(this.TileViatura_Click_);

            #line default
            #line hidden
                return;

            case 12:
                this.tileAgente = ((MahApps.Metro.Controls.Tile)(target));

            #line 211 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tileAgente.Click += new System.Windows.RoutedEventHandler(this.TileAgente_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.tileCadAgenAux = ((MahApps.Metro.Controls.Tile)(target));

            #line 223 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tileCadAgenAux.Click += new System.Windows.RoutedEventHandler(this.tileCadAgenAux_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.tilePessoaF = ((MahApps.Metro.Controls.Tile)(target));

            #line 229 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tilePessoaF.Click += new System.Windows.RoutedEventHandler(this.tilePessoaF_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 240 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 241 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OcorrenciaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 17:

            #line 244 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AgenteMenuItem_Click);

            #line default
            #line hidden
                return;

            case 18:

            #line 245 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ViaturaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.FlyoutPrincipal = ((MahApps.Metro.Controls.FlyoutsControl)(target));
                return;

            case 20:
                this.flyoutAgente = ((MahApps.Metro.Controls.Flyout)(target));

            #line 263 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.flyoutAgente.Loaded += new System.Windows.RoutedEventHandler(this.FlyoutAgente_Loaded);

            #line default
            #line hidden
                return;

            case 21:
                this.canvasF = ((System.Windows.Controls.Canvas)(target));
                return;

            case 22:
                this.agenteProfilePicture = ((System.Windows.Controls.Image)(target));
                return;

            case 23:
                this.lblNomeAgente = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.lblNivel = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.imgBrooch = ((System.Windows.Controls.Image)(target));
                return;

            case 26:
                this.lblCargo = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.lblCasosResolvidos = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.tgsTema = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 278 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tgsTema.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.tgsTema_Checked);

            #line default
            #line hidden

            #line 278 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.tgsTema.IsCheckedChanged += new System.EventHandler(this.tgsTema_IsCheckedChanged);

            #line default
            #line hidden
                return;

            case 29:
                this.lblPtsExp = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.btnFzrLogoff = ((System.Windows.Controls.Button)(target));

            #line 283 "..\..\..\..\FORMS\PrincipalScreen.xaml"
                this.btnFzrLogoff.Click += new System.Windows.RoutedEventHandler(this.btnFzrLogoff_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 54 "..\..\WindowControl.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.button_OpenDisplayWindow);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 61 "..\..\WindowControl.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.button_VistJanPremiere);
     
     #line default
     #line hidden
     return;
     case 3:
     this.FlyoutControl = ((MahApps.Metro.Controls.FlyoutsControl)(target));
     return;
     case 4:
     this.AboutUsFlyoutContent = ((System.Windows.Controls.ContentControl)(target));
     return;
     case 5:
     this.SecurePasswordFlyoutContent = ((System.Windows.Controls.ContentControl)(target));
     return;
     case 6:
     this.WindowContent = ((System.Windows.Controls.ContentControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #15
0
 protected internal void CleanUp(FlyoutsControl flyoutsControl)
 {
     if (this.windowTitleThumb != null)
     {
         this.windowTitleThumb.DragStarted -= this.WindowTitleThumbOnDragStarted;
         this.windowTitleThumb.DragCompleted -= this.WindowTitleThumbOnDragCompleted;
         this.windowTitleThumb.PreviewMouseLeftButtonUp -= this.WindowTitleThumbOnPreviewMouseLeftButtonUp;
         this.windowTitleThumb.DragDelta -= this.WindowTitleThumbMoveOnDragDelta;
         this.windowTitleThumb.MouseDoubleClick -= this.WindowTitleThumbChangeWindowStateOnMouseDoubleClick;
         this.windowTitleThumb.MouseRightButtonUp -= this.WindowTitleThumbSystemMenuOnMouseRightButtonUp;
     }
     var thumbContentControl = this.flyoutHeader as IMetroThumb;
     if (thumbContentControl != null)
     {
         thumbContentControl.DragStarted -= this.WindowTitleThumbOnDragStarted;
         thumbContentControl.DragCompleted -= this.WindowTitleThumbOnDragCompleted;
         thumbContentControl.PreviewMouseLeftButtonUp -= this.WindowTitleThumbOnPreviewMouseLeftButtonUp;
         thumbContentControl.DragDelta -= this.WindowTitleThumbMoveOnDragDelta;
         thumbContentControl.MouseDoubleClick -= this.WindowTitleThumbChangeWindowStateOnMouseDoubleClick;
         thumbContentControl.MouseRightButtonUp -= this.WindowTitleThumbSystemMenuOnMouseRightButtonUp;
     }
     this.parentWindow = null;
 }
Exemple #16
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.taskBar = ((System.Windows.Shell.TaskbarItemInfo)(target));
     return;
     case 2:
     this.playCommand = ((System.Windows.Shell.ThumbButtonInfo)(target));
     return;
     case 3:
     this.progressState = ((System.Windows.Shell.ThumbButtonInfo)(target));
     return;
     case 4:
     this.testFlyout = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 5:
     this.ContainerGrid = ((MahApps.Metro.Controls.FlyoutsControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PrincipalScreen1 = ((sistemaCorporativo.FORMS.principalScreen.PrincipalScreen)(target));

            #line 12 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.PrincipalScreen1.Loaded += new System.Windows.RoutedEventHandler(this.PrincipalScreen1_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.btnPerfil = ((System.Windows.Controls.Button)(target));

            #line 103 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.btnPerfil.Click += new System.Windows.RoutedEventHandler(this.btnPerfil_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.grdPrincipal = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.grdPrincipal1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:

            #line 162 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_2);

            #line default
            #line hidden
                return;

            case 6:

            #line 168 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_3);

            #line default
            #line hidden
                return;

            case 7:

            #line 174 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_4);

            #line default
            #line hidden
                return;

            case 8:

            #line 180 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_1);

            #line default
            #line hidden
                return;

            case 9:

            #line 186 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 204 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 205 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaAnonMenuItem_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 206 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OcorrenciaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 208 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 209 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AgenteMenuItem_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 210 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ViaturaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.FlyoutPrincipal = ((MahApps.Metro.Controls.FlyoutsControl)(target));
                return;

            case 17:
                this.flyoutAgente = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 18:
                this.btnFzrLogoff = ((System.Windows.Controls.Button)(target));

            #line 233 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.btnFzrLogoff.Click += new System.Windows.RoutedEventHandler(this.btnFzrLogoff_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.tgsTema = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 234 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.tgsTema.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.tgsTema_Checked);

            #line default
            #line hidden

            #line 234 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.tgsTema.IsCheckedChanged += new System.EventHandler(this.tgsTema_IsCheckedChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((Authentification.Principal)(target));
                return;

            case 2:

            #line 161 "..\..\Principal.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAccent);

            #line default
            #line hidden
                return;

            case 3:
                this.flyoutsControl = ((MahApps.Metro.Controls.FlyoutsControl)(target));
                return;

            case 4:

            #line 183 "..\..\Principal.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.nouveau_compte_checked);

            #line default
            #line hidden
                return;

            case 5:

            #line 196 "..\..\Principal.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.mofid_compte_checked);

            #line default
            #line hidden
                return;

            case 6:

            #line 210 "..\..\Principal.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Infoentreprise_checked);

            #line default
            #line hidden
                return;

            case 7:

            #line 224 "..\..\Principal.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Logout_click);

            #line default
            #line hidden
                return;

            case 8:
                this.HamburgerMenuControl = ((MahApps.Metro.Controls.HamburgerMenu)(target));

            #line 278 "..\..\Principal.xaml"
                this.HamburgerMenuControl.ItemInvoked += new System.EventHandler <MahApps.Metro.Controls.HamburgerMenuItemInvokedEventArgs>(this.HamburgerMenuControl_OnItemInvoked);

            #line default
            #line hidden

            #line 283 "..\..\Principal.xaml"
                this.HamburgerMenuControl.ItemClick += new MahApps.Metro.Controls.ItemClickEventHandler(this.click);

            #line default
            #line hidden
                return;

            case 9:

            #line 317 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.ajouter_employée);

            #line default
            #line hidden
                return;

            case 10:

            #line 323 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.modif_click);

            #line default
            #line hidden
                return;

            case 11:

            #line 336 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Attestation_clik);

            #line default
            #line hidden
                return;

            case 12:

            #line 346 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Historique_salaire);

            #line default
            #line hidden
                return;

            case 13:

            #line 380 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.planing_click);

            #line default
            #line hidden
                return;

            case 14:

            #line 391 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.ajout_click);

            #line default
            #line hidden
                return;

            case 15:

            #line 422 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 433 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.condiat_click);

            #line default
            #line hidden
                return;

            case 17:

            #line 442 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_1);

            #line default
            #line hidden
                return;

            case 18:

            #line 451 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_2);

            #line default
            #line hidden
                return;

            case 19:

            #line 461 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_3);

            #line default
            #line hidden
                return;

            case 20:

            #line 495 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Définir_click);

            #line default
            #line hidden
                return;

            case 21:

            #line 505 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.evaclick);

            #line default
            #line hidden
                return;

            case 22:

            #line 541 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.an_click);

            #line default
            #line hidden
                return;

            case 23:

            #line 551 "..\..\Principal.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.ann_click);

            #line default
            #line hidden
                return;

            case 24:
                this.user_name = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.calendar1 = ((System.Windows.Controls.Calendar)(target));
                return;

            case 26:
                this.accent = ((System.Windows.Controls.ComboBox)(target));

            #line 648 "..\..\Principal.xaml"
                this.accent.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.accent_SelectionChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.theme = ((System.Windows.Controls.ComboBox)(target));

            #line 654 "..\..\Principal.xaml"
                this.theme.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.theme_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.flyoutsDemo = ((MetroDemo.ExampleWindows.FlyoutDemo)(target));
                return;

            case 2:
                this.flyoutsControl = ((MahApps.Metro.Controls.FlyoutsControl)(target));
                return;

            case 3:
                this.settingsFlyout = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 4:
                this.firstTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.flyoutSettingsComboboxDownloadlanguage = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.flyoutSettingsButtonSave = ((System.Windows.Controls.Button)(target));
                return;

            case 7:

            #line 229 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSettingsLeft);

            #line default
            #line hidden
                return;

            case 8:

            #line 233 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSettingsRight);

            #line default
            #line hidden
                return;

            case 9:

            #line 342 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSecond);

            #line default
            #line hidden
                return;

            case 10:

            #line 345 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowThird);

            #line default
            #line hidden
                return;

            case 11:

            #line 348 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAccent);

            #line default
            #line hidden
                return;

            case 12:

            #line 351 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowInverse);

            #line default
            #line hidden
                return;

            case 13:

            #line 354 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAdapt);

            #line default
            #line hidden
                return;

            case 14:

            #line 357 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSettings);

            #line default
            #line hidden
                return;

            case 15:

            #line 360 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowModal);

            #line default
            #line hidden
                return;

            case 16:

            #line 363 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAppBar);

            #line default
            #line hidden
                return;

            case 17:

            #line 366 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowDynamicFlyout);

            #line default
            #line hidden
                return;

            case 18:

            #line 464 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowLeft);

            #line default
            #line hidden
                return;

            case 19:

            #line 467 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowTop);

            #line default
            #line hidden
                return;

            case 20:

            #line 470 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowBottom);

            #line default
            #line hidden
                return;

            case 21:

            #line 473 "..\..\..\..\Windows\FlyoutDemo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseMe);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.flyoutsDemo = ((MetroDemo.ExampleWindows.FlyoutDemo)(target));
     return;
     case 2:
     this.flyoutsControl = ((MahApps.Metro.Controls.FlyoutsControl)(target));
     return;
     case 3:
     this.settingsFlyout = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 4:
     this.firstTB = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.flyoutSettingsComboboxDownloadlanguage = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.flyoutSettingsButtonSave = ((System.Windows.Controls.Button)(target));
     return;
     case 7:
     
     #line 229 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSettingsLeft);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 233 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSettingsRight);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 342 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSecond);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 345 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowThird);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 348 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAccent);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 351 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowInverse);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 354 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAdapt);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 357 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSettings);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 360 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowModal);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 363 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAppBar);
     
     #line default
     #line hidden
     return;
     case 17:
     
     #line 366 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowDynamicFlyout);
     
     #line default
     #line hidden
     return;
     case 18:
     
     #line 464 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowLeft);
     
     #line default
     #line hidden
     return;
     case 19:
     
     #line 467 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowTop);
     
     #line default
     #line hidden
     return;
     case 20:
     
     #line 470 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowBottom);
     
     #line default
     #line hidden
     return;
     case 21:
     
     #line 473 "..\..\..\..\ExampleWindows\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseMe);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemple #21
0
 protected internal void CleanUp(FlyoutsControl flyoutsControl)
 {
     if (this.windowTitleThumb != null)
     {
         this.windowTitleThumb.PreviewMouseLeftButtonUp -= WindowTitleThumbOnPreviewMouseLeftButtonUp;
         this.windowTitleThumb.DragDelta -= this.WindowTitleThumbMoveOnDragDelta;
         this.windowTitleThumb.MouseDoubleClick -= this.WindowTitleThumbChangeWindowStateOnMouseDoubleClick;
         this.windowTitleThumb.MouseRightButtonUp -= this.WindowTitleThumbSystemMenuOnMouseRightButtonUp;
     }
     this.parentWindow = null;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.flyoutsControl = ((MahApps.Metro.Controls.FlyoutsControl)(target));
                return;

            case 2:
                this.settingsFlyout = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 3:
                this.PeopleName = ((System.Windows.Controls.TextBox)(target));

            #line 42 "..\..\..\Views\TeacherStep2View.xaml"
                this.PeopleName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.PeopleName_TextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.Record = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 5:

            #line 138 "..\..\..\Views\TeacherStep2View.xaml"
                ((System.Windows.Controls.Grid)(target)).TextInput += new System.Windows.Input.TextCompositionEventHandler(this.Grid_TextInput);

            #line default
            #line hidden
                return;

            case 6:
                this.day = ((System.Windows.Controls.ComboBox)(target));

            #line 148 "..\..\..\Views\TeacherStep2View.xaml"
                this.day.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.subject = ((System.Windows.Controls.ComboBox)(target));

            #line 163 "..\..\..\Views\TeacherStep2View.xaml"
                this.subject.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.subject_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.grade = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 175 "..\..\..\Views\TeacherStep2View.xaml"
                this.grade.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Nullable <double> >(this.grade_ValueChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.start = ((Xceed.Wpf.Toolkit.TimePicker)(target));

            #line 177 "..\..\..\Views\TeacherStep2View.xaml"
                this.start.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.start_ValueChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.end = ((Xceed.Wpf.Toolkit.TimePicker)(target));

            #line 179 "..\..\..\Views\TeacherStep2View.xaml"
                this.end.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.end_ValueChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.add = ((System.Windows.Controls.Button)(target));

            #line 180 "..\..\..\Views\TeacherStep2View.xaml"
                this.add.Click += new System.Windows.RoutedEventHandler(this.add_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.stepResult = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }