Ejemplo n.º 1
0
        protected virtual object CreateModel(MT4Manager manager, ModelBindingContext bindingContext)
        {
            var codePage = bindingContext.CodePage();

            switch (bindingContext.ModelType.Name)
            {
            case "ConSymbol":
                var value = bindingContext.GetParameterValue("Name");
                return(manager.CfgRequestSymbol(codePage).Where(p => p.Name == value).First());

            default: break;
            }

            return(null);
        }