public SettingsWindow(PluginSettingsBase settings) { try { InitializeComponent(); this.settings = new AutoRefSettings(settings); checkBoxActivated.IsChecked = this.settings.activated; } catch (Exception) { } }