Пример #1
0
        private RepositoryItem FindList(AppNonListEnum listName)
        {
            switch (listName)
            {
            case AppNonListEnum.MarkerSymbolImageList:
                return(symbolRIImageComboBox);

                break;

            case AppNonListEnum.ActiveByteCheckEdit:
                return(activeRICheckEdit);

                break;

            case AppNonListEnum.CalculatorColumn:
                return(calcRICalcEdit);

                break;

            case AppNonListEnum.DateColumn:
                return(dateRIDateEdit);

                break;

            case AppNonListEnum.DateTimeColumn:
                return(dateTimeRIDateEdit);

                break;

            default:
                return(null);

                break;
            }
        }
Пример #2
0
        public void        LinkListToColumn(AppNonListEnum listName, DevExpress.XtraGrid.Columns.GridColumn col)
        {
            #region OldCost
            //switch (listName)
            //{
            //    case AppNonListEnum.MarkerSymbolImageList:
            //        col.ColumnEdit = symbolRIImageComboBox;
            //        break;
            //    case AppNonListEnum.ActiveByteCheckEdit:
            //        col.ColumnEdit = activeRICheckEdit;
            //        break;
            //    case AppNonListEnum.CalculatorColumn:
            //        col.ColumnEdit = calcRICalcEdit;
            //        break;
            //    case AppNonListEnum.DateColumn:
            //        col.ColumnEdit = dateRIDateEdit;
            //        break;
            //    case AppNonListEnum.DateTimeColumn:
            //        col.ColumnEdit = dateTimeRIDateEdit;
            //        break;

            //    default:
            //        break;
            //}
            #endregion

            col.ColumnEdit = FindList(listName);
        }
Пример #3
0
 public void        LinkListToColumn(AppNonListEnum listName, DevExpress.XtraBars.BarEditItem col)
 {
     col.Edit = FindList(listName);
 }
Пример #4
0
 public void        LinkListToColumn(AppNonListEnum listName, DevExpress.XtraTreeList.Columns.TreeListColumn col)
 {
     col.ColumnEdit = FindList(listName);
 }