public static RadioInfo[] DoRadioSelection() { SelectRadiosWindow win = new SelectRadiosWindow(); if (win.ShowDialog() == true) { return win.SelectedRadios; } return null; }
public static RadioInfo[] DoRadioSelection() { SelectRadiosWindow win = new SelectRadiosWindow(); if (win.ShowDialog() == true) { return(win.SelectedRadios); } return(null); }
private void btnAddToRollCall_Click(object sender, RoutedEventArgs e) { Common.RadioInfo[] riList = SelectRadiosWindow.DoRadioSelection(); if (riList != null && riList.Length > 0) { foreach (Common.RadioInfo ri in riList) { if (RollCallService.GetItemFromLookupKey(ri.SignalingLookupKey) == null) { RollCallService.AddToWaitingList(new ViewModels.RollCallItem(ri, Common.EmergencyState.NonEmergency)); } } } }