public void OpenLog() { if (log == null) { log = logFactory.Create(); log.Closed += OnLogClosed; log.Owner = application.MainWindow; log.ShowDialog(); } else { log.BringIntoView(); } }