private void renderWindow_Disposed(object sender, EventArgs e) { this.renderWindow = null; }
private void LaunchRenderWindow() { if (this.renderWindow == null) { this.renderWindow = new RenderWindow(); this.renderWindow.Disposed += new EventHandler(this.renderWindow_Disposed); } this.renderWindow.Setup(this.currentMashup.GetRenderOptions(), this.currentMashup, this.mapTileSourceFactory, new RenderProgressPanel2.LaunchRenderedBrowserDelegate(this.LaunchRenderedBrowser), new RenderState.FlushRenderedTileCachePackageDelegate(this.flushRenderedTileCachePackage)); this.renderWindow.Visible = true; }