virtual public void RefreshDataReader(IDataReaderUpdater dr, IColumn code, IColumn description)
        {
            cbbManager.Clear <string>();
            dr.Find();
            for (int t = 0; t < dr.Count; t++)
            {
                cbbManager.AddValue(dr.GetValue <string>(code, t), dr.GetValue <string>(description, t));
            }

            cbbManager.Refresh();
        }
Exemplo n.º 2
0
 virtual public void AttachDataReader <T>(IDataReaderUpdater dr, IColumn code, IColumn description, bool alsoNULL)
 {
     cbbManager = new ComboBoxManager(this);
     if (GlobalInfo.DBaseInfo.dbManager != null)
     {
         if (alsoNULL)
         {
             cbbManager.AddValue <T>(default(T) == null ? (T)Convert.ChangeType(string.Empty, typeof(T)) : default(T), string.Empty);
         }
         FillComboBox <T>(dr, code, description);
         cbbManager.Refresh();
     }
 }
 virtual public void AttachDataReader(IDataReaderUpdater dr, IColumn code, IColumn description, bool alsoNULL)
 {
     cbbManager = new ComboBoxManager(this);
     cbbManager.CreateList <string>();
     if (GlobalInfo.DBaseInfo.dbManager != null)
     {
         if (alsoNULL)
         {
             cbbManager.AddValue(string.Empty, string.Empty);
         }
         FillComboBox(dr, code, description);
         cbbManager.AttachTo(this);
         cbbManager.Refresh();
     }
 }