void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.sideMenu = ((HandyControl.Controls.SideMenu)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.sideMenu.AddHandler(HandyControl.Controls.SideMenuItem.SelectedEvent, new System.Windows.RoutedEventHandler(this.sideMenu_Selected));

            #line default
            #line hidden
                return;

            case 2:
                this.MainDashboard = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 3:
                this.MainProducts = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 4:
                this.Categories = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 5:
                this.Products = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 6:
                this.MainSales = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 7:
                this.Customers = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 8:
                this.Invoices = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 9:
                this.MainEmployees = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 10:
                this.Employees = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 11:
                this.Payroll = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 12:
                this.MainContent = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        private void SideMenuItemSelected(object sender, RoutedEventArgs e)
        {
            if (e.OriginalSource is SideMenuItem item)
            {
                if (item.Role == SideMenuItemRole.Item)
                {
                    if (Equals(item, _selectedItem))
                    {
                        return;
                    }

                    if (_selectedItem != null)
                    {
                        _selectedItem.IsSelected = false;
                    }

                    _selectedItem            = item;
                    _selectedItem.IsSelected = true;
                    RaiseEvent(new FunctionEventArgs <object>(SelectionChangedEvent, this)
                    {
                        Info = e.OriginalSource
                    });
                    _isItemSelected = true;
                }
                else
                {
                    if (!Equals(item, _selectedHeader))
                    {
                        if (_selectedHeader != null)
                        {
                            if (ExpandMode == ExpandMode.Freedom && item.ItemsHost.IsVisible && !_isItemSelected)
                            {
                                item.IsSelected = false;
                                SwitchPanelArea(item);
                                return;
                            }

                            _selectedHeader.IsSelected = false;
                            if (ExpandMode != ExpandMode.Freedom)
                            {
                                SwitchPanelArea(_selectedHeader);
                            }
                        }

                        _selectedHeader            = item;
                        _selectedHeader.IsSelected = true;
                        SwitchPanelArea(_selectedHeader);
                    }
                    else if (ExpandMode == ExpandMode.Freedom && !_isItemSelected)
                    {
                        _selectedHeader.IsSelected = false;
                        SwitchPanelArea(_selectedHeader);
                        _selectedHeader = null;
                    }

                    if (_isItemSelected)
                    {
                        _isItemSelected = false;
                    }
                    else if (_selectedHeader != null)
                    {
                        _selectedHeader.SelectDefaultItem();
                        _isItemSelected = false;
                    }
                }
            }
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Nom_Admin_ = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 18 "..\..\Admin.xaml"
                this.DataGrid.Loaded += new System.Windows.RoutedEventHandler(this.loadData);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\Admin.xaml"
                this.butAjouter.Click += new System.Windows.RoutedEventHandler(this.butAjouter_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Nom_Admin = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 30 "..\..\Admin.xaml"
                this.butSupprimer.Click += new System.Windows.RoutedEventHandler(this.butSupprimer_Click);

            #line default
            #line hidden
                return;

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

            #line 39 "..\..\Admin.xaml"
                this.butModifier.Click += new System.Windows.RoutedEventHandler(this.butModifier_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.txtFullname = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.lblFullname = ((System.Windows.Controls.Label)(target));
                return;

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

            case 10:
                this.lblPassword = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 13:
                this.txtEmail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.txtPassword = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.lblFourmateur = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.txtFormateur = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.txtRoleld = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 18:
                this.txtAnnée = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.lblAnnée = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.butEnregister = ((System.Windows.Controls.Button)(target));

            #line 101 "..\..\Admin.xaml"
                this.butEnregister.Click += new System.Windows.RoutedEventHandler(this.butEnregister_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.butVider = ((System.Windows.Controls.Button)(target));

            #line 109 "..\..\Admin.xaml"
                this.butVider.Click += new System.Windows.RoutedEventHandler(this.butVider_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.txtClasse = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 23:
                this.butEnregistetModefication = ((System.Windows.Controls.Button)(target));

            #line 118 "..\..\Admin.xaml"
                this.butEnregistetModefication.Click += new System.Windows.RoutedEventHandler(this.butEnregistetModefication_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.butDashboard = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 25:
                this.butFormateur = ((HandyControl.Controls.SideMenuItem)(target));

            #line 141 "..\..\Admin.xaml"
                this.butFormateur.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.butFormateur_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 26:
                this.butSecrétaire = ((HandyControl.Controls.SideMenuItem)(target));

            #line 148 "..\..\Admin.xaml"
                this.butSecrétaire.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.butSecrétaire_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 27:
                this.butApprenants = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 28:
                this.csharp = ((HandyControl.Controls.SideMenuItem)(target));

            #line 160 "..\..\Admin.xaml"
                this.csharp.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.csharp_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 29:

            #line 168 "..\..\Admin.xaml"
                ((HandyControl.Controls.SideMenuItem)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.JEE_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 30:

            #line 173 "..\..\Admin.xaml"
                ((HandyControl.Controls.SideMenuItem)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.FEBE_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 31:
                this.butParamètres = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 32:
                this.butLogut = ((HandyControl.Controls.SideMenuItem)(target));
                return;

            case 33:
                this.DataGridSecrétaire = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 34:
                this.AjouterSecretaire = ((System.Windows.Controls.Button)(target));

            #line 195 "..\..\Admin.xaml"
                this.AjouterSecretaire.Click += new System.Windows.RoutedEventHandler(this.AjouterSecretaire_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.EnregistrerSecretaire = ((System.Windows.Controls.Button)(target));

            #line 203 "..\..\Admin.xaml"
                this.EnregistrerSecretaire.Click += new System.Windows.RoutedEventHandler(this.EnregistrerSecretaire_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.lblImage = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.txtImage = ((System.Windows.Controls.TextBox)(target));
                return;

            case 38:
                this.ModifirerSecretaire = ((System.Windows.Controls.Button)(target));

            #line 220 "..\..\Admin.xaml"
                this.ModifirerSecretaire.Click += new System.Windows.RoutedEventHandler(this.ModifirerSecretaire_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.EnregistrerModificationSecretaire = ((System.Windows.Controls.Button)(target));

            #line 229 "..\..\Admin.xaml"
                this.EnregistrerModificationSecretaire.Click += new System.Windows.RoutedEventHandler(this.EnregistrerModificationSecretaire_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.SupprimerSecretaire = ((System.Windows.Controls.Button)(target));

            #line 237 "..\..\Admin.xaml"
                this.SupprimerSecretaire.Click += new System.Windows.RoutedEventHandler(this.SupprimerSecretaire_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.DataGridApprennent = ((System.Windows.Controls.DataGrid)(target));

            #line 247 "..\..\Admin.xaml"
                this.DataGridApprennent.Loaded += new System.Windows.RoutedEventHandler(this.loadeDataGridApprennent);

            #line default
            #line hidden
                return;

            case 42:
                this.lbldateNaissance = ((System.Windows.Controls.Label)(target));
                return;

            case 43:
                this.txtdateNaissance = ((System.Windows.Controls.TextBox)(target));
                return;

            case 44:
                this.AjouterStudent = ((System.Windows.Controls.Button)(target));

            #line 257 "..\..\Admin.xaml"
                this.AjouterStudent.Click += new System.Windows.RoutedEventHandler(this.AjouterStudent_Click_1);

            #line default
            #line hidden
                return;

            case 45:
                this.EnregistrerStudent = ((System.Windows.Controls.Button)(target));

            #line 265 "..\..\Admin.xaml"
                this.EnregistrerStudent.Click += new System.Windows.RoutedEventHandler(this.EnregistrerStudent_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.lblFormateurId = ((System.Windows.Controls.Label)(target));
                return;

            case 47:
                this.txFormateurId = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 48:
                this.ModifirerStudent = ((System.Windows.Controls.Button)(target));

            #line 275 "..\..\Admin.xaml"
                this.ModifirerStudent.Click += new System.Windows.RoutedEventHandler(this.ModifirerStudent_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.EnregistrerModificationStudent = ((System.Windows.Controls.Button)(target));

            #line 284 "..\..\Admin.xaml"
                this.EnregistrerModificationStudent.Click += new System.Windows.RoutedEventHandler(this.EnregistrerModificationStudent_Click);

            #line default
            #line hidden
                return;

            case 50:
                this.SupprimerStudent = ((System.Windows.Controls.Button)(target));

            #line 292 "..\..\Admin.xaml"
                this.SupprimerStudent.Click += new System.Windows.RoutedEventHandler(this.SupprimerStudent_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.DataGridApprennentJEE = ((System.Windows.Controls.DataGrid)(target));

            #line 301 "..\..\Admin.xaml"
                this.DataGridApprennentJEE.Loaded += new System.Windows.RoutedEventHandler(this.loadeDataGridApprennent);

            #line default
            #line hidden
                return;

            case 52:
                this.DataGridApprennentFEBE = ((System.Windows.Controls.DataGrid)(target));

            #line 302 "..\..\Admin.xaml"
                this.DataGridApprennentFEBE.Loaded += new System.Windows.RoutedEventHandler(this.loadeDataGridApprennent);

            #line default
            #line hidden
                return;

            case 53:
                this.textboxSearch = ((System.Windows.Controls.TextBox)(target));

            #line 303 "..\..\Admin.xaml"
                this.textboxSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

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

            case 2:
                this.btn_msg = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.pic = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.name_staff = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.btn_dashboard = ((HandyControl.Controls.SideMenuItem)(target));

            #line 48 "..\..\Secretaire.xaml"
                this.btn_dashboard.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_dashboard_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 6:
                this.btn_C = ((HandyControl.Controls.SideMenuItem)(target));

            #line 58 "..\..\Secretaire.xaml"
                this.btn_C.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_C_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 7:
                this.btn_JEE = ((HandyControl.Controls.SideMenuItem)(target));

            #line 66 "..\..\Secretaire.xaml"
                this.btn_JEE.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_JEE_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 8:
                this.btn_FEBE = ((HandyControl.Controls.SideMenuItem)(target));

            #line 71 "..\..\Secretaire.xaml"
                this.btn_FEBE.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_FEBE_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 9:
                this.btn_Classe1 = ((HandyControl.Controls.SideMenuItem)(target));

            #line 76 "..\..\Secretaire.xaml"
                this.btn_Classe1.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_Classe1_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 10:
                this.btn_Classe2 = ((HandyControl.Controls.SideMenuItem)(target));

            #line 81 "..\..\Secretaire.xaml"
                this.btn_Classe2.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_Classe2_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 11:
                this.btn_Classe3 = ((HandyControl.Controls.SideMenuItem)(target));

            #line 86 "..\..\Secretaire.xaml"
                this.btn_Classe3.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_Classe3_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 12:
                this.btn_Classe4 = ((HandyControl.Controls.SideMenuItem)(target));

            #line 91 "..\..\Secretaire.xaml"
                this.btn_Classe4.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_Classe4_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 13:
                this.btn_ret = ((HandyControl.Controls.SideMenuItem)(target));

            #line 97 "..\..\Secretaire.xaml"
                this.btn_ret.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_ret_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 14:
                this.btn_abs = ((HandyControl.Controls.SideMenuItem)(target));

            #line 104 "..\..\Secretaire.xaml"
                this.btn_abs.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.btn_abs_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 15:
                this.dg = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 16:
                this.ValP = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.valR = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.valA = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.dg_Dash = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 20:
                this.dg_ABS = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 21:
                this.abs_v = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 23:
                this.abs_nv = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 25:
                this.dg_RE = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 26:
                this.ret_v = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 28:
                this.ret_nv = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 30:
                this.dg_C = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 31:
                this.check_V4 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 32:
                this.check_NV4 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 33:
                this.dg_JEE = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 34:
                this.check_V5 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 35:
                this.check_NV5 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 36:
                this.dg_FEBE = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 37:
                this.check_V6 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 38:
                this.check_NV6 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 39:
                this.dg_Classe1 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 40:
                this.check_V8 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 41:
                this.check_NV8 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 42:
                this.dg_Classe2 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 43:
                this.check_V9 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 44:
                this.check_NV9 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 45:
                this.dg_Classe3 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 46:
                this.check_V10 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 47:
                this.check_NV10 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 48:
                this.dg_Classe4 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 49:
                this.check_V11 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 50:
                this.check_NV11 = ((System.Windows.Controls.DataGridCheckBoxColumn)(target));
                return;

            case 51:
                this.btn_presents = ((System.Windows.Controls.Button)(target));

            #line 266 "..\..\Secretaire.xaml"
                this.btn_presents.Click += new System.Windows.RoutedEventHandler(this.btn_presents_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.btn_retards = ((System.Windows.Controls.Button)(target));

            #line 267 "..\..\Secretaire.xaml"
                this.btn_retards.Click += new System.Windows.RoutedEventHandler(this.btn_retards_Click);

            #line default
            #line hidden
                return;

            case 53:
                this.btn_absents = ((System.Windows.Controls.Button)(target));

            #line 268 "..\..\Secretaire.xaml"
                this.btn_absents.Click += new System.Windows.RoutedEventHandler(this.btn_absents_Click);

            #line default
            #line hidden
                return;

            case 54:
                this.rec_Ab = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 55:
                this.rec_Js = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 56:
                this.rec_V = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 57:
                this.lab_tabs = ((System.Windows.Controls.Label)(target));
                return;

            case 58:
                this.lab_tjs = ((System.Windows.Controls.Label)(target));
                return;

            case 59:
                this.lab_tv = ((System.Windows.Controls.Label)(target));
                return;

            case 60:
                this.cer_Ab = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 61:
                this.cer_Js = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 62:
                this.cer_V = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 63:
                this.val_AbsM = ((System.Windows.Controls.Label)(target));
                return;

            case 64:
                this.val_JSM = ((System.Windows.Controls.Label)(target));
                return;

            case 65:
                this.val_JSVM = ((System.Windows.Controls.Label)(target));
                return;

            case 66:
                this.date_today = ((System.Windows.Controls.Label)(target));
                return;

            case 67:
                this.lab_filtre = ((System.Windows.Controls.Label)(target));
                return;

            case 68:
                this.datetimepicker = ((HandyControl.Controls.DatePicker)(target));

            #line 285 "..\..\Secretaire.xaml"
                this.datetimepicker.KeyUp += new System.Windows.Input.KeyEventHandler(this.datetimepicker1);

            #line default
            #line hidden
                return;

            case 69:
                this.textboxSearch = ((System.Windows.Controls.TextBox)(target));

            #line 288 "..\..\Secretaire.xaml"
                this.textboxSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

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