private void LoadConfiguration() { WindowSettings winConfig = this.GetWindowsSettings(); this.txtBEntityName.Text = winConfig.GetValueString(paramEntityName); this.txtBMessageFilter.Text = winConfig.GetValueString(paramMessage); this.txtBPluginTypeFilter.Text = winConfig.GetValueString(paramPluginTypeName); this.chBStagePreValidation.IsChecked = winConfig.GetValueBool(paramPreValidationStage).GetValueOrDefault(); this.chBStagePre.IsChecked = winConfig.GetValueBool(paramPreStage).GetValueOrDefault(); this.chBStagePostSync.IsChecked = winConfig.GetValueBool(paramPostSynchStage).GetValueOrDefault(); this.chBStagePostAsync.IsChecked = winConfig.GetValueBool(paramPostAsynchStage).GetValueOrDefault(); { var temp = winConfig.GetValueString(paramView); if (!string.IsNullOrEmpty(temp)) { if (Enum.TryParse <View>(temp, out View tempView)) { this._currentView = tempView; this.IncreaseInit(); rBViewByEntity.IsChecked = rBViewByAssembly.IsChecked = rBViewByMessage.IsChecked = false; switch (this._currentView) { case View.ByAssembly: rBViewByAssembly.IsChecked = true; break; case View.ByMessage: rBViewByMessage.IsChecked = true; break; case View.ByEntity: default: rBViewByEntity.IsChecked = true; break; } this.DecreaseInit(); } } } }