Пример #1
0
 private void GetNozzelsForPumperOnGivenDay()
 {
     try
     {
         var details = CustomeRepository.GetNozzelsForPumperOnGivenDay(commonFunctions.ToInt(cmb_days.SelectedValue.ToString()), commonFunctions.ToInt(cmb_pumper.SelectedValue.ToString()));
         lst_nozzels.Items.Clear();
         lst_dailydet.Items.Clear();
         dgmain.DataSource = null;
         foreach (var item in details)
         {
             string       name = item.Name;
             ListViewItem itm  = new ListViewItem(name);
             itm.Tag        = item;
             itm.ImageIndex = 4;
             lst_nozzels.Items.Add(itm);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error Has found in program. Please forword following details to technical" + Environment.NewLine + "[" + ex.Message + Environment.NewLine + ex.Source + "]", Messaging.MessageCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }