Ejemplo n.º 1
0
 private void Select()
 {
     FMRadioModel model = new FMRadioModel();
     model.SelectRadio();
     ObservableCollection<FMRadioItem> radioitems = model.Items;
     //TODO:显示
     listRadio.ItemsSource = radioitems;
 }
Ejemplo n.º 2
0
 public static FMRadioModel GetInstance()
 {
     if (_Instance == null)
         _Instance = new FMRadioModel();
     return _Instance;
 }
Ejemplo n.º 3
0
 private void btnAddRadio_Click(object sender, RoutedEventArgs e)
 {
     if (flag)
     {
         FMRadioItem radioitem = new FMRadioItem();
         radioitem.Id = Guid.NewGuid();
         radioitem.Frequency = frequency;
         FMRadioModel model = new FMRadioModel();
         model.AddRadio(radioitem);
     }
 }