示例#1
0
        private async void ActionGetData()
        {
            WSService ws     = new WSService();
            var       result = await ws.GetAllDevice();

            this.ComboBoxDevice = new ObservableCollection <Device>(result);
        }
示例#2
0
        public async void AlimData()
        {
            WSService ws   = new WSService();
            var       resu = await ws.GetAllDevice();

            this.CbDevise.DataContext       = resu;
            this.CbDevise.ItemsSource       = resu;
            this.CbDevise.SelectedValuePath = "Id";
            this.CbDevise.DisplayMemberPath = "Nom";
        }