private void Select() { FMRadioModel model = new FMRadioModel(); model.SelectRadio(); ObservableCollection<FMRadioItem> radioitems = model.Items; //TODO:显示 listRadio.ItemsSource = radioitems; }
public static FMRadioModel GetInstance() { if (_Instance == null) _Instance = new FMRadioModel(); return _Instance; }
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); } }