Exemplo n.º 1
0
        private void PopulateComponentsScriptReferences(DesignerViewConfigModel designerViewConfigModel)
        {
            if (designerViewConfigModel == null)
            {
                return;
            }

            if (designerViewConfigModel.Components != null && designerViewConfigModel.Components.Count > 0)
            {
                if (designerViewConfigModel.Scripts == null)
                {
                    designerViewConfigModel.Scripts = new List<string>();
                }

                designerViewConfigModel.Scripts = ScriptDependencyResolver.GetScripts(designerViewConfigModel.Components, designerViewConfigModel.Scripts);
            }
        }
Exemplo n.º 2
0
        private List<KeyValuePair<string, DesignerViewConfigModel>> CreateDummyDesignerViewConfigModel()
        {
            var designerViewConfigs = new List<KeyValuePair<string, DesignerViewConfigModel>>();

            var designerConfig1 = new DesignerViewConfigModel();
            designerConfig1.Hidden = true;
            designerConfig1.Priority = 5;
            designerConfig1.Scripts = new List<string> { Script1 };
            designerViewConfigs.Add(new KeyValuePair<string, DesignerViewConfigModel>("View1", designerConfig1));

            var designerConfig2 = new DesignerViewConfigModel();
            designerConfig2.Hidden = true;
            designerConfig2.Priority = 1;
            designerConfig2.Scripts = new List<string> { Script2, Script3, };
            designerViewConfigs.Add(new KeyValuePair<string, DesignerViewConfigModel>("View2", designerConfig2));

            return designerViewConfigs;
        }