private void LoadWine( string wineId ) { IsLoading = true; var wineProxy = new WineProxy(); wineProxy.GetWineDetail( wineId, callback => SmartDispatcher.BeginInvoke( () => { IsLoading = false; WineModel = callback; } ) ); }
private void LoadBusiness( string businessId ) { IsLoading = true; var wineProxy = new WineProxy(); wineProxy.GetWinesByBusiness( businessId, callback => SmartDispatcher.BeginInvoke( () => { foreach( var wine in callback ) { wines.Add( wine ); } IsLoading = false; RaisePropertyChanged( () => Wines ); } ) ); }