private void _buttonContenuCommande_Click_1(object sender, RoutedEventArgs e) { try { this.importCommandeWindow.Close(); this.importCommandeWindow = null; } catch (Exception) { } this.importCommandeWindow = new ImportCommandeWindow(); try { this.importCommandeWindow._ComboBoxFournisseur.SelectedItem = this._comboBoxFournisseur.SelectedItem; } catch (Exception) { } this.importCommandeWindow.sortieAtelierWindow = this; this.importCommandeWindow.Show(); }
private void _buttonOk_Click(object sender, RoutedEventArgs e) { //Validation si cellule en édition try { this._dataGridContenu.CommitEdit(); } catch (Exception) { } //Recalcul du contenu this.calculer(); if (this.Verif_Generale()) { this.DialogResult = true; try { this.shopCommandeWindow.Close(); this.shopCommandeWindow = null; } catch (Exception) { } try { this.importCommandeWindow.Close(); this.importCommandeWindow = null; } catch (Exception) { } this.Close(); } }
private void _buttonAnnuler_Click(object sender, RoutedEventArgs e) { this.DialogResult = false; try { this.shopCommandeWindow.Close(); this.shopCommandeWindow = null; } catch (Exception) { } try { this.importCommandeWindow.Close(); this.importCommandeWindow = null; } catch (Exception) { } this.Close(); }