private static Tools.Runtime.IFactory<Xy.Web.Control.IControl> builderFactory() { Xy.Tools.Runtime.Compiler<Xy.Web.Control.IControl> _compiler = new Tools.Runtime.Compiler<Xy.Web.Control.IControl>(); _compiler.ReferencedAssemblies = _assemblies.ToArray(); _compiler.ErrorMessage = "Can not found control with key: {0}"; _compiler.CompilerItems = new Tools.Runtime.CompilerItem[_controls.Count]; for (int i = 0; i < _controls.Count; i++) { _compiler.CompilerItems[i] = new Tools.Runtime.CompilerItem() { Identity = new string[] { "@" + _controls.Keys[i] }, Name = _controls[i].Substring(_controls[i].IndexOf(',') + 1) }; } return _compiler.GetFactory(); }
private static Tools.Runtime.IFactory<Xy.Web.Page.PageAbstract> builderFactory() { Xy.Tools.Runtime.Compiler<Xy.Web.Page.PageAbstract> _compiler = new Tools.Runtime.Compiler<Xy.Web.Page.PageAbstract>(); _compiler.ReferencedAssemblies = _assemblies.ToArray(); _compiler.ErrorMessage = "Can not found page class with key: {0}"; _compiler.CompilerItems = new Tools.Runtime.CompilerItem[_classFullNames.Count]; for (int i = 0; i < _classFullNames.Count; i++) { _compiler.CompilerItems[i] = new Tools.Runtime.CompilerItem() { Identity = new string[] { _classFullNames[i], _classFullNames[i].Substring(_classFullNames[i].IndexOf(',') + 1) }, Name = _classFullNames[i].Substring(_classFullNames[i].IndexOf(',') + 1) }; } return _compiler.GetFactory(); }
private static Tools.Runtime.IFactory<Xy.Data.IDataBuilder> builderFactory() { Xy.Tools.Runtime.Compiler<Xy.Data.IDataBuilder> _compiler = new Tools.Runtime.Compiler<Xy.Data.IDataBuilder>(); _compiler.ReferencedAssemblies = _assemblies.ToArray(); _compiler.ErrorMessage = "Can not found data builder with key: {0}"; _compiler.CompilerItems = new Tools.Runtime.CompilerItem[_dataBuilders.Count]; for (int i = 0; i < _dataBuilders.Count; i++) { _compiler.CompilerItems[i] = new Tools.Runtime.CompilerItem() { Identity = new string[] { _dataBuilders.Keys[i] }, Name = _dataBuilders[i].Substring(_dataBuilders[i].IndexOf(',') + 1) }; } return _compiler.GetFactory(false); }
private static Tools.Runtime.IFactory<Xy.Data.IDataBase> builderFactory() { Xy.Tools.Runtime.Compiler<Xy.Data.IDataBase> _compiler = new Tools.Runtime.Compiler<Xy.Data.IDataBase>(); _compiler.ReferencedAssemblies = Assemblies.ToArray(); _compiler.ErrorMessage = "Can not found data provider class with key: {0}"; _compiler.CompilerItems = new Tools.Runtime.CompilerItem[ClassFullNames.Count]; for (int i = 0; i < ClassFullNames.Count; i++) { _compiler.CompilerItems[i] = new Tools.Runtime.CompilerItem() { Identity = new string[] { ClassFullNames[i], ClassFullNames[i].Substring(ClassFullNames[i].IndexOf(',') + 1) }, Name = ClassFullNames[i].Substring(ClassFullNames[i].IndexOf(',') + 1) }; } return _compiler.GetFactory(); }
private static Tools.Runtime.IFactory <Xy.Data.IDataBuilder> builderFactory() { Xy.Tools.Runtime.Compiler <Xy.Data.IDataBuilder> _compiler = new Tools.Runtime.Compiler <Xy.Data.IDataBuilder>(); _compiler.ReferencedAssemblies = _assemblies.ToArray(); _compiler.ErrorMessage = "Can not found data builder with key: {0}"; _compiler.CompilerItems = new Tools.Runtime.CompilerItem[_dataBuilders.Count]; for (int i = 0; i < _dataBuilders.Count; i++) { _compiler.CompilerItems[i] = new Tools.Runtime.CompilerItem() { Identity = new string[] { _dataBuilders.Keys[i] }, Name = _dataBuilders[i].Substring(_dataBuilders[i].IndexOf(',') + 1) }; } return(_compiler.GetFactory(false)); }
private static Tools.Runtime.IFactory <Xy.Data.IDataBase> builderFactory() { Xy.Tools.Runtime.Compiler <Xy.Data.IDataBase> _compiler = new Tools.Runtime.Compiler <Xy.Data.IDataBase>(); _compiler.ReferencedAssemblies = Assemblies.ToArray(); _compiler.ErrorMessage = "Can not found data provider class with key: {0}"; _compiler.CompilerItems = new Tools.Runtime.CompilerItem[ClassFullNames.Count]; for (int i = 0; i < ClassFullNames.Count; i++) { _compiler.CompilerItems[i] = new Tools.Runtime.CompilerItem() { Identity = new string[] { ClassFullNames[i], ClassFullNames[i].Substring(ClassFullNames[i].IndexOf(',') + 1) }, Name = ClassFullNames[i].Substring(ClassFullNames[i].IndexOf(',') + 1) }; } return(_compiler.GetFactory()); }
private static Tools.Runtime.IFactory <Xy.Web.Control.IControl> builderFactory() { Xy.Tools.Runtime.Compiler <Xy.Web.Control.IControl> _compiler = new Tools.Runtime.Compiler <Xy.Web.Control.IControl>(); _compiler.ReferencedAssemblies = _assemblies.ToArray(); _compiler.ErrorMessage = "Can not found control with key: {0}"; _compiler.CompilerItems = new Tools.Runtime.CompilerItem[_controls.Count]; for (int i = 0; i < _controls.Count; i++) { _compiler.CompilerItems[i] = new Tools.Runtime.CompilerItem() { Identity = new string[] { "@" + _controls.Keys[i] }, Name = _controls[i].Substring(_controls[i].IndexOf(',') + 1) }; } return(_compiler.GetFactory()); }
private static Tools.Runtime.IFactory <Xy.Web.Page.PageAbstract> builderFactory() { Xy.Tools.Runtime.Compiler <Xy.Web.Page.PageAbstract> _compiler = new Tools.Runtime.Compiler <Xy.Web.Page.PageAbstract>(); _compiler.ReferencedAssemblies = _assemblies.ToArray(); _compiler.ErrorMessage = "Can not found page class with key: {0}"; _compiler.CompilerItems = new Tools.Runtime.CompilerItem[_classFullNames.Count]; for (int i = 0; i < _classFullNames.Count; i++) { _compiler.CompilerItems[i] = new Tools.Runtime.CompilerItem() { Identity = new string[] { _classFullNames[i], _classFullNames[i].Substring(_classFullNames[i].IndexOf(',') + 1) }, Name = _classFullNames[i].Substring(_classFullNames[i].IndexOf(',') + 1) }; } return(_compiler.GetFactory()); }