private void addActionButton_Click(object sender, RoutedEventArgs e)
 {
     Forms.ActionWindow g = new Forms.ActionWindow(true);
     if (g.ShowDialog() == true)
     {
         this.ShowAll();
     }
 }
 private void editActionButton_Click(object sender, RoutedEventArgs e)
 {
     if (ActionGrid.SelectedIndex != -1)
     {
         var naz = (WpfApplicationEntity.API.Action)ActionGrid.SelectedItem;
         Forms.ActionWindow g = new Forms.ActionWindow(false, naz.ID);
         g.ShowDialog();
         this.ShowAll();
     }
 }