private void BoutonAdd_Click(object sender, RoutedEventArgs e) { Add_Contact_View fenetreAjouterContact = new Add_Contact_View(); fenetreAjouterContact.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.fenetreNouveauContact = ((View.Add_Contact_View)(target)); return; case 2: this.NewContactFirtsName = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.NewContactSecondName = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.NewContactEmail = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.NewContactPhone = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.NewContactAge = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.boutonNewContact = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\Add_Contact_View.xaml" this.boutonNewContact.Click += new System.Windows.RoutedEventHandler(this.BoutonNewContact_Click); #line default #line hidden return; case 8: this.backToMenu = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\Add_Contact_View.xaml" this.backToMenu.Click += new System.Windows.RoutedEventHandler(this.BackToMenu_Click); #line default #line hidden return; case 9: this.signOutNewContact = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\Add_Contact_View.xaml" this.signOutNewContact.Click += new System.Windows.RoutedEventHandler(this.SignOutNewContact_Click); #line default #line hidden return; case 10: this.addContactMessage = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }