예제 #1
0
파일: MainShell.cs 프로젝트: rinavin/RCJS
        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;
            }
        }
예제 #2
0
파일: MainShell.cs 프로젝트: rinavin/RCJS
 private void AddNewHost(RuntimeHostControl hc)
 {
     hc.Parent = splitContainer1.Panel1;
     hc.Dock   = DockStyle.Fill;
     _hostSurfaceManager.ActiveDesignSurface = hc.HostSurface;
 }
예제 #3
0
파일: MainShell.cs 프로젝트: rinavin/RCJS
        private void Save(bool saveAs)
        {
            RuntimeHostControl currentHostControl = CurrentDocumentsHostControl;

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