Beispiel #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()
                );
        }
Beispiel #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;
 }
        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;

        }
Beispiel #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;
 }
Beispiel #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;

        }
Beispiel #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");
     }
 }
Beispiel #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)
 {
 }
Beispiel #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);
        }