Example #1
0
        public void AddDesigner(Form form, CreateAllOwnerDrawControlsDelegate createAllOwnerDrawControls, GetControlDesignerInfoDelegate getControlDesignerInfo)
        {
            RuntimeHostControl hc = _hostSurfaceManager.GetNewHost(form, createAllOwnerDrawControls, getControlDesignerInfo, AdminMode, this);

            AddNewHost(hc);

            RuntimeDesignerHandleState.SaveState(GetFileName(), RuntimeHostSurface.ComponentsDictionary);

            if (AdminMode)
            {
                FillHiddenControlsPane(RuntimeHostSurface.ComponentsDictionary);

                RuntimeHostSurface.ControlsDeleted += runtimeHostSurface_ControlsHidden;
            }
        }
Example #2
0
        public void ExecuteSaveCommand()
        {
            RuntimeDesignerSerializer.SerializeToFiles(RuntimeHostSurface.ComponentsDictionary);

            RuntimeDesignerHandleState.SaveState(GetFileName(), RuntimeHostSurface.ComponentsDictionary);
        }