Ejemplo n.º 1
0
 public AddSongUI(GuitarPracticeTrackerUI mainUI, Song song)
 {
     InitializeComponent();
     tbArtist.Text             = song.Artist;
     tbName.Text               = song.Name;
     cbTuning.DataSource       = Tunings.ListOfTunings;
     cbTuning.SelectedItem     = Tunings.FindTuningByString(song.Tuning);
     cbDifficulty.DataSource   = Enum.GetValues(typeof(Difficulty));
     cbDifficulty.SelectedItem = song.Difficulty;
     songToEdit      = song;
     addOrEdit       = AddOrEdit.Edit;
     btnAddSong.Text = "Edit Song";
     mainUIForm      = mainUI;
 }