Exemplo n.º 1
0
 public void LoadFromComponentView(ComponentView cView)
 {
     pageId         = cView.pageId;
     itemId         = cView.itemId;
     isSlave        = cView.isSlave;
     masterId       = cView.masterId;
     index          = cView.index;
     isEditable     = cView.isEditable;
     panelName      = cView.panelName;
     workfolder     = cView.workfolder;
     Draggable      = cView.Draggable;
     ComponentId    = cView.ComponentId;
     LayerId        = cView.LayerId;
     ComponentType  = cView.ComponentType;
     PanelId        = cView.PanelId;
     ComponentIndex = cView.ComponentIndex;
     DataField      = cView.DataField;
     DesignField    = cView.DesignField;
     _responsive    = cView.responsiveLevels;
     _stacks        = cView.responsiveStacks;
     specialHash    = cView.specialHash;
     _left          = cView.Left;
     _top           = cView.Top;
     _width         = cView.Width;
     _height        = cView.Height;
 }
Exemplo n.º 2
0
 public ComponentProperties(Core RennderCore, ComponentView c)
 {
     R          = RennderCore;
     _component = c;
     itemId     = Component.itemId;
     scaffold   = new Scaffold(R, "/app/components/" + Component.ComponentName.Replace(" ", "/") + "/properties.html", "");
 }
Exemplo n.º 3
0
        public ComponentView GetComponentView()
        {
            ComponentView cv = new ComponentView();

            cv.pageId           = pageId;
            cv.itemId           = itemId;
            cv.isSlave          = isSlave;
            cv.masterId         = masterId;
            cv.index            = index;
            cv.isEditable       = isEditable;
            cv.panelName        = panelName;
            cv.workfolder       = workfolder;
            cv.Draggable        = Draggable;
            cv.ComponentId      = ComponentId;
            cv.ComponentName    = ComponentName;
            cv.LayerId          = LayerId;
            cv.ComponentType    = ComponentType;
            cv.PanelId          = PanelId;
            cv.ComponentIndex   = ComponentIndex;
            cv.DataField        = DataField;
            cv.DesignField      = DesignField;
            cv.responsiveLevels = _responsive;
            cv.responsiveStacks = _stacks;
            cv.specialHash      = specialHash;

            cv.Left   = Left;
            cv.Top    = Top;
            cv.Width  = Width;
            cv.Height = Height;

            return(cv);
        }