private void InitializeAuxComponent() { cbbManager = new ComboBoxManager(); cbbManager.CreateList <int>(); foreach (KeyValuePair <int, string> counter in GlobalInfo.CounterTypes) { cbbManager.AddValue(counter.Key, counter.Value); } cbbManager.AttachTo(cbbCode); }
private void InitializeAuxComponent() { cbbManager = new ComboBoxManager(); cbbManager.CreateList <string>(); foreach (KeyValuePair <string, string> codes in GlobalInfo.CodeTypes) { cbbManager.AddValue(codes.Key, codes.Value); } cbbManager.AttachTo(cbbCode); //eSegmentType = new EnumsManager<InputType>(sgmCodeType, Properties.Resources.ResourceManager); }
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(); } }