Example #1
0
 private void addServiceButton_Click(object sender, RoutedEventArgs e)
 {
     Forms.ServicesWindow g = new Forms.ServicesWindow(this);
     if (g.ShowDialog() == true)
     {
         this.ShowAll();
     }
 }
Example #2
0
 private void editServiceButton_Click(object sender, RoutedEventArgs e)
 {
     if (ServiceGrid.SelectedItems.Count > 0)
     {
         for (int i = 0; i < ServiceGrid.SelectedItems.Count; i++)
         {
             WFAEntity.API.DatabaseRequest.NewOther_services objectService = ServiceGrid.SelectedItems[i] as WFAEntity.API.DatabaseRequest.NewOther_services;
             if (objectService != null)
             {
                 Forms.ServicesWindow g = new Forms.ServicesWindow(new MainWindow(), new Other_services());
                 if (g.ShowDialog() == true)
                 {
                     this.ShowAll();
                 }
             }
         }
     }
     else
     {
         MessageBox.Show("Выберите строку");
     }
 }