Пример #1
0
        private void BuildColumns(Zetbox.App.Base.DataType cls, IEnumerable <Property> props, IEnumerable <Method> methods, Mode mode)
        {
            if (cls == null)
            {
                throw new ArgumentNullException("cls");
            }
            if (props == null)
            {
                throw new ArgumentNullException("props");
            }
            if (methods == null)
            {
                throw new ArgumentNullException("methods");
            }

            ShowIcon = cls.ShowIconInLists;
            ShowId   = cls.ShowIdInLists;
            ShowName = cls.ShowNameInLists;

            this.Columns = new ObservableCollection <ColumnDisplayModel>(
                props.Select(p => CreateColumnDisplayModel(mode, p))
                .Concat(methods.Select(m => GridDisplayConfiguration.CreateColumnDisplayModel(m)))
                .ToList()
                );
        }
Пример #2
0
 public MethodCanExec(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.App.Base.DataType dt, Zetbox.App.Base.Method m, string eventName)
     : base(_host)
 {
     this.ctx       = ctx;
     this.dt        = dt;
     this.m         = m;
     this.eventName = eventName;
 }
Пример #3
0
        public MethodCanExec(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.App.Base.DataType dt, Zetbox.App.Base.Method m, string eventName)
            : base(_host)
        {
			this.ctx = ctx;
			this.dt = dt;
			this.m = m;
			this.eventName = eventName;

        }
Пример #4
0
 public Method(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.App.Base.DataType dt, Zetbox.App.Base.Method m, int index, string indexSuffix, string eventName)
     : base(_host)
 {
     this.ctx         = ctx;
     this.dt          = dt;
     this.m           = m;
     this.index       = index;
     this.indexSuffix = indexSuffix;
     this.eventName   = eventName;
 }
Пример #5
0
        public Method(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.App.Base.DataType dt, Zetbox.App.Base.Method m, int index, string indexSuffix, string eventName)
            : base(_host)
        {
			this.ctx = ctx;
			this.dt = dt;
			this.m = m;
			this.index = index;
			this.indexSuffix = indexSuffix;
			this.eventName = eventName;

        }
Пример #6
0
 public void BuildColumns(Zetbox.App.Base.DataType cls, Mode mode, bool showMethods)
 {
     if (cls is ObjectClass)
     {
         BuildColumns((ObjectClass)cls, mode, showMethods);
     }
     else if (cls is CompoundObject)
     {
         BuildColumns((CompoundObject)cls, mode, showMethods);
     }
     else
     {
         throw new InvalidOperationException("Unsupported DataType");
     }
 }
Пример #7
0
 public InvokeServerMethod(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.App.Base.DataType dt, Zetbox.App.Base.Method m, int index, string indexSuffix, string eventName)
     : base(_host, ctx, dt, m, index, indexSuffix, eventName)
 {
 }
Пример #8
0
        public static void Call(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.App.Base.DataType dt, Zetbox.App.Base.Method m, int index, string indexSuffix, string eventName)
        {
            if (_host == null)
            {
                throw new global::System.ArgumentNullException("_host");
            }

            _host.CallTemplate("ObjectClasses.Method", ctx, dt, m, index, indexSuffix, eventName);
        }