private Control RenderOnePanel(SchemaTabDefine tab, SchemaPropertyValueCollection properties, Scene currentScene) { HtmlGenericControl panel = new HtmlGenericControl("div"); panel.ID = tab.Name; panel.Style["width"] = "100%"; panel.Style["height"] = "100%"; PropertyForm pForm = new PropertyForm() { AutoSaveClientState = false }; pForm.ID = tab.Name + "_Form"; if (currentScene.Items[this.tabStrip.ID].Recursive == true) { pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly; } pForm.Properties.CopyFrom(properties.ToPropertyValues()); PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection(); layouts.LoadLayoutSectionFromConfiguration("DefalutLayout"); pForm.Layouts.InitFromLayoutSectionCollection(layouts); pForm.Style["width"] = "100%"; pForm.Style["height"] = "400"; panel.Controls.Add(pForm); return(panel); }
public override object Deserialize(IDictionary<string, object> dictionary, Type type, JavaScriptSerializer serializer) { SchemaTabDefine schemaTabDefine = new SchemaTabDefine(); schemaTabDefine.Name = DictionaryHelper.GetValue(dictionary, "name", string.Empty); schemaTabDefine.Description = DictionaryHelper.GetValue(dictionary, "description", string.Empty); return schemaTabDefine; }
private Control RenderOnePanel(SchemaTabDefine tab, SchemaPropertyValueCollection properties, bool readOnly) { RelaxedTabPage tabPage = new RelaxedTabPage() { Title = tab.Description, TagKey = tab.Name }; this.tabs.TabPages.Add(tabPage); PropertyForm pForm = new PropertyForm() { AutoSaveClientState = false }; pForm.ID = tab.Name + "_Form"; //// if (currentScene.Items[this.tabStrip.ID].Recursive == true) //// pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly; pForm.Properties.CopyFrom(properties.ToPropertyValues()); PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection(); layouts.LoadLayoutSectionFromConfiguration("DefalutLayout"); pForm.Layouts.InitFromLayoutSectionCollection(layouts); pForm.Style["width"] = "100%"; pForm.Style["height"] = "400"; tabPage.Controls.Add(pForm); pForm.ReadOnly = readOnly; return(tabPage); }
private Control RenderOnePanel(SchemaTabDefine tab, Control container, SchemaPropertyValueCollection properties, bool readOnly) { HtmlGenericControl panel = new HtmlGenericControl("div"); panel.ID = tab.Name; panel.Style["width"] = "100%"; panel.Style["height"] = "100%"; this.panelContainer.Controls.Add(panel); PropertyForm pForm = new PropertyForm() { AutoSaveClientState = false }; pForm.ID = tab.Name + "_Form"; pForm.ReadOnly = readOnly; //// if (currentScene.Items[this.tabStrip.ID].Recursive == true) //// pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly; pForm.Properties.CopyFrom(properties.ToPropertyValues()); PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection(); layouts.LoadLayoutSectionFromConfiguration("DefalutLayout"); pForm.Layouts.InitFromLayoutSectionCollection(layouts); pForm.Style["width"] = "100%"; pForm.Style["height"] = "400"; panel.Controls.Add(pForm); return panel; }
private Control RenderOnePanel(SchemaTabDefine tab, SchemaPropertyValueCollection properties, bool readOnly) { RelaxedTabPage tabPage = new RelaxedTabPage() { Title = tab.Description, TagKey = tab.Name }; this.tabs.TabPages.Add(tabPage); PropertyForm pForm = new PropertyForm() { AutoSaveClientState = false }; pForm.ID = tab.Name + "_Form"; //// if (currentScene.Items[this.tabStrip.ID].Recursive == true) //// pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly; pForm.Properties.CopyFrom(properties.ToPropertyValues()); PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection(); layouts.LoadLayoutSectionFromConfiguration("DefalutLayout"); pForm.Layouts.InitFromLayoutSectionCollection(layouts); pForm.Style["width"] = "100%"; pForm.Style["height"] = "400"; tabPage.Controls.Add(pForm); pForm.ReadOnly = readOnly; return tabPage; }