示例#1
0
        public SearchSimViewModel()
        {
            var test = CarrierData.Get();

            CarrierOptions      = new ObservableCollection <Carrier>(CarrierData.Get());
            PrefixNumberOptions = new ObservableCollection <PrefixNumber>(PrefixNumberData.Get());
            NumberTypeOptions   = new ObservableCollection <SimTypeOption>();
        }
示例#2
0
 public EditSimListViewModel()
 {
     CarrierOptions    = new ObservableCollection <Carrier>(CarrierData.Get());
     NumberTypeOptions = new ObservableCollection <SimTypeOption>();
     PreLoadData       = new Command(() =>
     {
         ApiUrl = $"api/sim/myeditsims?Page={Page}";
     });
 }
示例#3
0
        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);
        }