private void GetAllInstrumentStatuses() { try { List <string> status = _instrumentManager.GetAllInstrumentStatusIDs(); status.RemoveAt(0); CmbStatus.ItemsSource = status; } catch (Exception ex) { MessageBox.Show(ex.Message + "\n\n" + ex.InnerException.Message); } }
private List <string> GetGetAllInstrumentStatuses() { List <string> statuses = new List <string>(); try { statuses = _instrumentManager.GetAllInstrumentStatusIDs(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\n\n" + ex.InnerException?.Message); } return(statuses); }