private void _buttonImporter_Click_1(object sender, RoutedEventArgs e) { if (this._comboBoxAffaire.SelectedItem != null) { try { this.importRetourChantier.Close(); this.importRetourChantier = null; } catch (Exception) { } this.importRetourChantier = new ImportRetourChantier(((Affaire)this._comboBoxAffaire.SelectedItem).Identifiant); this.importRetourChantier.retourChantierWindow = this; this.importRetourChantier.Show(); } else { MessageBox.Show("Veuillez au préalable renseigner une affaire"); } }
private void _buttonOK_Click_1(object sender, RoutedEventArgs e) { //Validation si cellule en édition try { this._dataGridContenu.CommitEdit(); } catch (Exception) { } //Recalcul du contenu this.calculer(); if (this.Verif_Generale()) { try { this.importRetourChantier.Close(); this.importRetourChantier = null; } catch (Exception) { } this.DialogResult = true; this.Close(); } }
private void _buttonAnnuler_Click_1(object sender, RoutedEventArgs e) { try { this.importRetourChantier.Close(); this.importRetourChantier = null; } catch (Exception) { } this.DialogResult = false; this.Close(); }