public SearchSimViewModel() { var test = CarrierData.Get(); CarrierOptions = new ObservableCollection <Carrier>(CarrierData.Get()); PrefixNumberOptions = new ObservableCollection <PrefixNumber>(PrefixNumberData.Get()); NumberTypeOptions = new ObservableCollection <SimTypeOption>(); }
public EditSimListViewModel() { CarrierOptions = new ObservableCollection <Carrier>(CarrierData.Get()); NumberTypeOptions = new ObservableCollection <SimTypeOption>(); PreLoadData = new Command(() => { ApiUrl = $"api/sim/myeditsims?Page={Page}"; }); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null || (short)value == 0) { return("Chọn nhà mạng"); } Int16 CarrierId = (Int16)value; return(CarrierData.Get().SingleOrDefault(x => x.Id == CarrierId).Name); }