public void ShowDesigner(PresentationInfo info, bool Editing, bool JustCreatedPresentation) { using (PresentationDesignerForm designer = new PresentationDesignerForm(info)) { designer.JustCreatedPresentation = JustCreatedPresentation; // Признак только что созданной презентации InitAndShowDesigner(designer, Editing); } if (!this.IsDisposed) this.Show(); }
private void InitAndShowDesigner(PresentationDesignerForm designer, bool Editing) { Cursor = Cursors.WaitCursor; designer.Init(Editing); this.Hide(); Cursor = Cursors.Default; designer.ShowDialog(); }