private void LinkAccountRef1(ListColumnInfo _col, CriteriaOperator _whereCO = null)
        {
            var listSrc = new XPCollection <CoreModel.AccountRef1>(session: unitOfWork1, loadingEnabled: false);

            listSrc.Criteria               = _whereCO;
            listSrc.LoadingEnabled         = true;
            accountRef1TreeList.DataSource = listSrc;
            //Setup labels
            var listObjectBase = UIObjectBase.GetUIObjectByName(typeof(CoreModel.AccountRef1), unitOfWork1);

            listObjectBase.SetupGUILabels(accountRef1TreeList.TreeList);

            if (_col.GridColumn != null)
            {
                _col.GridColumn.ColumnEdit = SharedPR.Items[ACCOUNT_REF1];
            }
            if (_col.LookUpEditor != null)
            {
                var ed = (_col.LookUpEditor as TreeListLookUpEdit);
                ed.Properties.TreeList      = accountRef1TreeList.TreeList;
                ed.Properties.DataSource    = listSrc;
                ed.Properties.DisplayMember = listObjectBase.LookUpDisplayMember();
                ed.Properties.ValueMember   = listObjectBase.LookUpValueMember();
            }
            if (_col.TreeListColumn != null)
            {
                _col.TreeListColumn.ColumnEdit = SharedPR.Items[ACCOUNT_REF1];
            }
        }
 private void LinkWorkflow(ListColumnInfo _col)
 {
     if (_col.GridColumn != null)
     {
         _col.GridColumn.ColumnEdit = BuildWorkflowImgCombo();
     }
     if (_col.ImageComboBoxEdit != null)
     {
         _col.ImageComboBoxEdit.Properties.Items.Clear();
         _col.ImageComboBoxEdit.Properties.SmallImages = workflowImgList;
         _col.ImageComboBoxEdit.Properties.LargeImages = workflowImgList;
         var cmbo = BuildWorkflowImgCombo();
         foreach (DevExpress.XtraEditors.Controls.ImageComboBoxItem item in cmbo.Items)
         {
             _col.ImageComboBoxEdit.Properties.Items.Add(item);
         }
     }
     if (_col.TreeListColumn != null)
     {
         _col.TreeListColumn.ColumnEdit = BuildWorkflowImgCombo();
     }
 }
        public void LinkList(ListColumnInfo _col, CoreModel.MyEnums.AppListPredefined _appList, CriteriaOperator _whereCO = null)
        {
            switch (_appList)
            {
            case CoreModel.MyEnums.AppListPredefined.AccountGroupTree:
                LinkAccountGroup(_col, _whereCO);
                break;

            case CoreModel.MyEnums.AppListPredefined.AccountRef1Tree:
                LinkAccountRef1(_col, _whereCO);
                break;

            case CoreModel.MyEnums.AppListPredefined.AccountRef2Tree:
                LinkAccountRef2(_col, _whereCO);
                break;

            case CoreModel.MyEnums.AppListPredefined.WorkflowStatusCombo:
                LinkWorkflow(_col);
                break;

            default:
                break;
            }
        }