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

            this.ComboBoxDevice = new ObservableCollection <Device>(result);
        }
        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";
        }