Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void MainShell_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (RuntimeDesignerHandleState.OnClose(CurrentDocumentsHostControl.HostSurface, GetFileName()))
     {
         e.Cancel = true;
     }
 }
Example #2
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 #3
0
        public void ExecuteSaveCommand()
        {
            RuntimeDesignerSerializer.SerializeToFiles(RuntimeHostSurface.ComponentsDictionary);

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