Exemplo n.º 1
0
 private void AddSectorExecute()
 {
     try
     {
         AddSector addSector = new AddSector();
         addSector.ShowDialog();
         SectorList = sectorService.GetSectors();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 private void AddSectorExecute()
 {
     try
     {
         AddSector addSector = new AddSector();
         addSector.ShowDialog();
         if ((addSector.DataContext as AddSectorViewModel).isUpdated == true)
         {
             sectorList = Service.Service.GetSectorList();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }