Пример #1
0
 public void GetItemList()
 {
     try
     {
         DtItemList.Clear();
         DcItemList.Clear();
         DropDownItemName.Refresh();
         DtItemList = CmC.GetMasterNamesAndCodes("", 0, 1);
         if (DtItemList.Rows.Count > 0)
         {
             DropDownItemName.DataSource    = new BindingSource(CmC.ConvertDataTableToDictionary(DtItemList), null);
             DropDownItemName.DisplayMember = "Value";
             DropDownItemName.ValueMember   = "Key";
         }
     }
     catch (Exception _exception)
     {
         CmC.InsertException(_exception);
         messageShow.singlemsgtext(CmC.ExceptionErrorMessage);
     }
 }