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