Пример #1
0
 private void addServiceButton_Click(object sender, RoutedEventArgs e)
 {
     Forms.ServiceWindow g = new Forms.ServiceWindow(true);
     if (g.ShowDialog() == true)
     {
         this.ShowAll();
     }
 }
Пример #2
0
 private void editServiceButton_Click(object sender, RoutedEventArgs e)
 {
     if (serviceGrid.SelectedIndex != -1)
     {
         var naz = (WpfApplicationEntity.API.Service)serviceGrid.SelectedItem;
         Forms.ServiceWindow g = new Forms.ServiceWindow(false, naz.ID);
         g.ShowDialog();
         this.ShowAll();
     }
 }