/// <summary> /// Handles the Click event of the Button control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void Button_Click(object sender, System.Windows.RoutedEventArgs e) { RectGray.Visibility = Visibility.Visible; NewProject wind = new NewProject(-1); wind.Owner = Window.GetWindow(this); wind.Show(); wind.Closing += new System.ComponentModel.CancelEventHandler(wind_Closing); }
/// <summary> /// Edits the projet. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void EditProjet(object sender, System.Windows.RoutedEventArgs e) { int idProjet = int.Parse(((Button)sender).Tag.ToString()); RectGray.Visibility = Visibility.Visible; NewProject wind = new NewProject(idProjet); wind.Owner = Window.GetWindow(this); wind.Show(); wind.Closing += new System.ComponentModel.CancelEventHandler(wind_Closing); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((AVosSouhaits.NewProject)(target)); #line 8 "..\..\NewProject.xaml" this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.expand = ((System.Windows.Controls.Expander)(target)); return; case 4: this.CbCivi1 = ((System.Windows.Controls.ComboBox)(target)); return; case 5: this.CbCivi2 = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.nom1 = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.prenom2 = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.nom2 = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.prenom1 = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.adresse = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.codepostal = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.ville = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.telephone = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.email = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.budget = ((System.Windows.Controls.TextBox)(target)); return; case 16: #line 46 "..\..\NewProject.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 17: this.dateDuMarriage = ((System.Windows.Controls.DatePicker)(target)); return; case 18: this.idProjet = ((System.Windows.Controls.TextBox)(target)); return; case 19: this.btnaddcompo = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }