public dynamic GetLayout() { dynamic instanceLayout = new DynamicWrapper(); DesignerExtensions.SetSimplePropertiesToInstance(_simpleProperties, instanceLayout); return(instanceLayout); }
public dynamic GetLayout() { dynamic instanceLayout = new DynamicWrapper(); DesignerExtensions.SetSimplePropertiesToInstance(_properties, instanceLayout); instanceLayout.Pages = new List <dynamic>(); for (var i = 0; i < _collectionProperties["Pages"].Items.Count; i++) { dynamic instancePage = _collectionProperties["Pages"].Items[i]; //DesignerExtensions.SetSimplePropertiesToInstance(_collectionProperties["Pages"].Items[i],instancePage); var layoutPanel = TabControl.TabPages[i].Controls.OfType <CompositPanel>().FirstOrDefault(); if (layoutPanel != null) { IEnumerable <dynamic> layout = layoutPanel.GetLayout(); instancePage.LayoutPanel = layout.FirstOrDefault() ?? new DynamicWrapper(); } instanceLayout.Pages.Add(instancePage); } return(instanceLayout); }
public dynamic GetLayout() { dynamic instanceLayout = new DynamicWrapper(); DesignerExtensions.SetSimplePropertiesToInstance(this, instanceLayout); instanceLayout.LayoutPanel = _compositPanel.GetLayout().FirstOrDefault(); return(instanceLayout); }
public dynamic GetLayout() { dynamic instance = new DynamicWrapper(); DesignerExtensions.SetSimplePropertiesToInstance(this, instance); instance.Columns = _columnsItems; return(instance); }
public dynamic GetLayout() { dynamic instanceLayout = new DynamicWrapper(); DesignerExtensions.SetSimplePropertiesToInstance(_simpleProperties, instanceLayout); CheckOperators(_generalProperties.Items); CheckOperators(_additionalProperties.Items); instanceLayout.GeneralProperties = _generalProperties.Items; instanceLayout.AdditionalProperties = _additionalProperties.Items; return(instanceLayout); }
public dynamic GetLayout() { dynamic instanceLayout = new DynamicWrapper(); DesignerExtensions.SetSimplePropertiesToInstance(this, instanceLayout); instanceLayout.Items = new List <dynamic>(); foreach (var layoutProvider in _compositPanel.GetLayoutControls()) { dynamic instanceItem = new DynamicWrapper(); instanceLayout.Items.Add(instanceItem); instanceItem[layoutProvider.GetPropertyName()] = layoutProvider.GetLayout(); } return(instanceLayout); }