private void SaveCommandExecute(object parameter) { model.Name = name; model.Description = description; CarInfoServiceClient proxy = new CarInfoServiceClient(); proxy.SaveCarInfoAsync(new RichEditMVVMScenarioSL.CarInfoServiceReference.CarInfo() { Name = model.Name, Description = model.Description }); }
private void LoadCommandExecute(object parameter) { CarInfoServiceClient proxy = new CarInfoServiceClient(); proxy.LoadCarInfoCompleted += ((s, e) => { model.Name = e.Result.Name; model.Description = e.Result.Description; this.Name = model.Name; this.Description = model.Description; }); proxy.LoadCarInfoAsync(); }