private void addTypeActionButton_Click(object sender, RoutedEventArgs e) { Forms.TypeActionWindow g = new Forms.TypeActionWindow(true); if (g.ShowDialog() == true) { this.ShowAll(); } }
private void editTypeActionButton_Click(object sender, RoutedEventArgs e) { if (typeactionGrid.SelectedIndex != -1) { var naz = (WpfApplicationEntity.API.Type_Action)typeactionGrid.SelectedItem; Forms.TypeActionWindow g = new Forms.TypeActionWindow(false, naz.ID); g.ShowDialog(); this.ShowAll(); } }