void OnSelectZoneCommand() { var zoneType = AlarmType == AlarmType.Guard ? ZoneType.Guard : ZoneType.Fire; var instructionZonesViewModel = new InstructionZonesViewModel(InstructionZones.ToList(), zoneType); if (DialogService.ShowModalWindow(instructionZonesViewModel)) { InstructionZones = new ObservableCollection<Guid>(instructionZonesViewModel.InstructionZonesList); } }
void OnSelectZoneCommand() { var instructionZonesViewModel = new InstructionZonesViewModel(InstructionZones.ToList()); if (DialogService.ShowModalWindow(instructionZonesViewModel)) { InstructionZones = new ObservableCollection<int>(instructionZonesViewModel.InstructionZonesList); } }