private void Load_firstPageContent(ISmartSession smartSession) { _firstPageContent = new frmMosaicProjection(smartSession); _firstPageContent.ProjectionFinished += new EventHandler(_firstPageContent_ProjectionFinished); _firstPageContent.Dock = DockStyle.Fill; this.Text = _firstPageContent.Text; this.Controls.Add(_firstPageContent); }
public new void Free() { if (_firstPageContent != null) { _firstPageContent.ProjectionFinished -= new EventHandler(_firstPageContent_ProjectionFinished); _firstPageContent.Free(); _firstPageContent = null; } if (_onWindowClosed != null) { _onWindowClosed(this, null); } }