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
 private void AddNewHost(RuntimeHostControl hc)
 {
     hc.Parent = splitContainer1.Panel1;
     hc.Dock   = DockStyle.Fill;
     _hostSurfaceManager.ActiveDesignSurface = hc.HostSurface;
 }
Example #3
0
        private void Save(bool saveAs)
        {
            RuntimeHostControl currentHostControl = CurrentDocumentsHostControl;

            ((RuntimeHostLoader)currentHostControl.HostSurface.Loader).Save(saveAs);
        }