コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmPrincipale1 = ((AppCollege.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.frmPrincipale1.Closing += new System.ComponentModel.CancelEventHandler(this.frmPrincipale_Closing);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmPrincipale1 = ((AppCollege.MainWindow)(target));

            #line 8 "..\..\frmPrincipale.xaml"
                this.frmPrincipale1.Loaded += new System.Windows.RoutedEventHandler(this.frmPrincipale1_Loaded);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\frmPrincipale.xaml"
                this.ListeEtudiants.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListeEtudiants_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\frmPrincipale.xaml"
                this.btnNouveau.Click += new System.Windows.RoutedEventHandler(this.BtnNouveau_OnClick);

            #line default
            #line hidden
                return;

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

            #line 48 "..\..\frmPrincipale.xaml"
                this.txtID.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Verifier_Info);

            #line default
            #line hidden
                return;

            case 5:
                this.txtPrenom = ((System.Windows.Controls.TextBox)(target));

            #line 50 "..\..\frmPrincipale.xaml"
                this.txtPrenom.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Verifier_Info);

            #line default
            #line hidden
                return;

            case 6:
                this.txtNom = ((System.Windows.Controls.TextBox)(target));

            #line 52 "..\..\frmPrincipale.xaml"
                this.txtNom.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Verifier_Info);

            #line default
            #line hidden
                return;

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

            #line 54 "..\..\frmPrincipale.xaml"
                this.txtAdresse.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Verifier_Info);

            #line default
            #line hidden
                return;

            case 8:
                this.txtVille = ((System.Windows.Controls.TextBox)(target));

            #line 56 "..\..\frmPrincipale.xaml"
                this.txtVille.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Verifier_Info);

            #line default
            #line hidden
                return;

            case 9:
                this.txtProvince = ((System.Windows.Controls.TextBox)(target));

            #line 58 "..\..\frmPrincipale.xaml"
                this.txtProvince.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Verifier_Info);

            #line default
            #line hidden
                return;

            case 10:
                this.txtCodePostal = ((System.Windows.Controls.TextBox)(target));

            #line 60 "..\..\frmPrincipale.xaml"
                this.txtCodePostal.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Verifier_Info);

            #line default
            #line hidden
                return;

            case 11:
                this.txtTelephone = ((System.Windows.Controls.TextBox)(target));

            #line 62 "..\..\frmPrincipale.xaml"
                this.txtTelephone.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Verifier_Info);

            #line default
            #line hidden
                return;

            case 12:
                this.ListeInstructeur = ((System.Windows.Controls.ComboBox)(target));

            #line 65 "..\..\frmPrincipale.xaml"
                this.ListeInstructeur.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Verifier_Selection);

            #line default
            #line hidden
                return;

            case 13:
                this.ListeProgramme = ((System.Windows.Controls.ComboBox)(target));

            #line 68 "..\..\frmPrincipale.xaml"
                this.ListeProgramme.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Verifier_Selection);

            #line default
            #line hidden
                return;

            case 14:
                this.btnEnregistrer = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\frmPrincipale.xaml"
                this.btnEnregistrer.Click += new System.Windows.RoutedEventHandler(this.BtnEnregistrer_OnClick);

            #line default
            #line hidden
                return;

            case 15:
                this.btnSupprimer = ((System.Windows.Controls.Button)(target));

            #line 71 "..\..\frmPrincipale.xaml"
                this.btnSupprimer.Click += new System.Windows.RoutedEventHandler(this.BtnSupprimer_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnAnnuler = ((System.Windows.Controls.Button)(target));

            #line 72 "..\..\frmPrincipale.xaml"
                this.btnAnnuler.Click += new System.Windows.RoutedEventHandler(this.BtnAnnuler_OnClick);

            #line default
            #line hidden
                return;

            case 17:
                this.rbActif = ((System.Windows.Controls.RadioButton)(target));

            #line 76 "..\..\frmPrincipale.xaml"
                this.rbActif.Checked += new System.Windows.RoutedEventHandler(this.BoutonRadio_Checked);

            #line default
            #line hidden
                return;

            case 18:
                this.rbArret = ((System.Windows.Controls.RadioButton)(target));

            #line 77 "..\..\frmPrincipale.xaml"
                this.rbArret.Checked += new System.Windows.RoutedEventHandler(this.BoutonRadio_Checked);

            #line default
            #line hidden
                return;

            case 19:
                this.rbGradue = ((System.Windows.Controls.RadioButton)(target));

            #line 78 "..\..\frmPrincipale.xaml"
                this.rbGradue.Checked += new System.Windows.RoutedEventHandler(this.BoutonRadio_Checked);

            #line default
            #line hidden
                return;

            case 20:
                this.lblCours = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.lstCours = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmPrincipale1 = ((AppCollege.MainWindow)(target));

            #line 8 "..\..\frmPrincipale.xaml"
                this.frmPrincipale1.Loaded += new System.Windows.RoutedEventHandler(this.frmPrincipale1_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.ListeEtudiants = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 5:
                this.txtPrenom = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.txtNom = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 8:
                this.txtVille = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.txtProvince = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.txtCodePostal = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.txtTelephone = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 13:
                this.ListeProgramme = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 14:
                this.btnEnregistrer = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.btnSupprimer = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.btnAnnuler = ((System.Windows.Controls.Button)(target));
                return;

            case 17:
                this.rbActif = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.rbArret = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.rbGradue = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 20:
                this.lblCours = ((System.Windows.Controls.Label)(target));
                return;

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