コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: CodesForm.cs プロジェクト: smfichadiya/ERPStudio
 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);
 }
コード例 #3
0
 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();
     }
 }