private void SetCurrentTypeInUI(NFOType ioType) { for (int index = 0; index < this.radioHandlers.Properties.Items.Count; index++) { RadioGroupItem type = this.radioHandlers.Properties.Items[index]; var t = type.Value as IoInterface; if (ioType == t.Type) { this.radioHandlers.SelectedIndex = index; } } }
/// <summary> /// The set current settings. /// </summary> /// <param name="type"> /// The NFOType type. /// </param> public void SetCurrentSettings(NFOType type) { this.IoType = type; this.CurrentMovieSaveSettings = this.MovieSaveSettings[type].Clone(); this.CurrentTvSaveSettings = this.TvSaveSettings[type].Clone(); }