public void ShowLogWindow() { if (this.logWindow == null) { this.logWindow = new LogWindow(); this.logWindow.Closed += new EventHandler(this.logWindow_Closed); this.logWindow.Bind(this.logInformation); } this.logWindow.Show(); }
private void logWindow_Closed(object sender, EventArgs e) { this.logWindow.Closed -= new EventHandler(this.logWindow_Closed); this.logWindow = null; }