Example #1
0
 private void AudioSongEditor_Load(object sender, EventArgs e)
 {
     this.ArtistTextBox.Text = _Audio.Artist;
     this.TitleTextBox.Text  = _Audio.Title;
     if (_Audio.LyricsId != null)
     {
         this.LyricsTextBox.Text = _AudioApi.GetText(Convert.ToInt64(_Audio.LyricsId));
     }
     foreach (var genre in AudioGenre.GetRegistered())
     {
         this.GenreComboBox.Items.Add(genre.ToString());
     }
     this.GenreComboBox.SelectedIndex = this.GenreComboBox.Items.IndexOf(AudioGenre.FromVkNet(_Audio.Genre).Name);
 }