private void btnEdit_Click(object sender, EventArgs e) { GestionarSector gs = new GestionarSector(); Sector selectedSector = SectorManager.obtener(int.Parse((cmbSectores.SelectedItem as ComboboxItem).Value.ToString())); if (selectedSector == null) { return; } gs.selectedSector = selectedSector; gs.Show(); }
private void btnAdd_Click(object sender, EventArgs e) { GestionarSector gs = new GestionarSector(); gs.Show(); }