private void addTypeServiceButton_Click(object sender, RoutedEventArgs e)
 {
     Forms.TypeServiceWindow g = new Forms.TypeServiceWindow(true);
     if (g.ShowDialog() == true)
     {
         this.ShowAll();
     }
 }
 private void editTypeServiceButton_Click(object sender, RoutedEventArgs e)
 {
     if (typeServiceGrid.SelectedIndex != -1)
     {
         var naz = (WpfApplicationEntity.API.Type_Service)typeServiceGrid.SelectedItem;
         Forms.TypeServiceWindow g = new Forms.TypeServiceWindow(false, naz.ID);
         g.ShowDialog();
         this.ShowAll();
     }
 }