Example #1
0
 private void doneEditingStation(Radio.StationEditAction SEA)
 {
     if (SEA == StationEditAction.OK)
     {
         sort();
         populateStations();
         populateGenres();
         invalidateAll();
         Clock.DoOnMainThread(instance.ensureSelectedStationVisible, 30);
     }
     this.Panel2.Controls.Remove(rep);
     rep = null;
     keyPreviewChange();
     arrangeStationPanel();
     controller.UnlockForPanel();
 }
Example #2
0
        private void editStationDetails()
        {
            if (SelectedStation != null)
            {
                List <string> genres = (from s in stations
                                        select s.Genre).Distinct().ToList();

                genres.Sort(StringComparer.OrdinalIgnoreCase);

                rep = new RadioEditPanel(SelectedStation, genres.ToArray(), doneEditingStation);
                keyPreviewChange();
                arrangeStationPanel();
                controller.LockForPanel();
                this.Panel2.Controls.Add(rep);
                rep.Focus();
            }
        }