public TrackGroup(SuffixedTextItem nameItem, Track[] tracks) { this.SuffixedNameItem = nameItem; this.SuffixedNameItem.PropertyChanged += this.SuffixedNameItem_PropertyChanged; this.tracks = tracks; foreach (Track track in tracks) { track.PropertyChanged += this.OnPropertyChanged; } }
public void Init(SuffixedTextItem textItem) { this.fireEvents = false; if (this.textItem != null) { this.textItem.Suffix.PropertyChanged -= this.textItem_Suffix_PropertyChanged; } this.textItem = textItem; this.textItem.Suffix.PropertyChanged += this.textItem_Suffix_PropertyChanged; this.nameComboBox.Init(Context.Game.Settings.CourseSelectTexts); this.nameComboBox.SelectedItem = this.textItem.TextItem; this.suffixTextBox.Text = this.textItem.Suffix.Value; this.fireEvents = true; }