public void OpenConfiguration() { if (configurationWindow == null) { isMainWindowViewModelReloadRequired = true; configurationWindow = new ConfigurationWindow(configurationFactory.Create(), this, errorLog, String.IsNullOrEmpty(Settings.Default.SourceDirectoryPath)); configurationWindow.ShowInTaskbar = !runHotKey.IsSet; configurationWindow.ResizeMode = !runHotKey.IsSet ? ResizeMode.CanMinimize : ResizeMode.NoResize; configurationWindow.Closed += OnConfigurationWindowClosed; } configurationWindow.Show(); configurationWindow.Activate(); }