Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
        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);
        }