Example #1
0
        public XpoInputObjectDataView(DevExpress.Xpo.XPView data, string TextProperty, string BoolProperty)
        {
            _data = data;

            var builder = new DataViewSchema.Builder();

            this.TextProperty = TextProperty;
            this.BoolProperty = BoolProperty;

            builder.AddColumn(BoolProperty, BooleanDataViewType.Instance);
            builder.AddColumn(TextProperty, TextDataViewType.Instance);



            Schema = builder.ToSchema();
        }
 public static IDataView LoadFromXpoObject(this DataOperationsCatalog Instance, Session session, Type ObjectType, string Properties, CriteriaOperator Criteria, string TextPropertyName, string LabelPropertyName)
 {
     DevExpress.Xpo.XPView View = new DevExpress.Xpo.XPView(session, ObjectType, Properties, Criteria);
     return(new XpoInputObjectDataView(View, TextPropertyName, LabelPropertyName));
 }