public MainPage()
        {
            InitializeComponent();

            netRadioService = new NetRadioStationsService(DependencyService.Resolve <ITableStorageHelper>());
            var iotDeviceService = DependencyService.Resolve <IIoTDeviceService>();

            viewModel = new MainPageViewModel(netRadioService, iotDeviceService, new UIVisibilityStrategyFactory());

            BindingContext = viewModel;
        }
示例#2
0
        public EditRadioStationViewModel(NetRadioStationsService netradioService, NetRadio radioToEdit)
        {
            this.netradioService = netradioService;
            this.radioToEdit     = radioToEdit;
            this.rowKey          = radioToEdit.RowKey;
            this.partitionKey    = radioToEdit.PartitionKey;

            RadioName  = radioToEdit.RadioName;
            RadioUrl   = radioToEdit.RadioUrl;
            FolderName = radioToEdit.Folder;
        }
 public AddRadioStationViewModel(NetRadioStationsService netradioService)
 {
     this.netradioService = netradioService;
 }