void UpdateVehicleCompleted(object sender, UpdateVehicleCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Result > 0) { _VM.Save_VICardAsync(oCard_add, oCard_upd); //add by zl //RefreshUI(RefreshedTypes.HideProgressBar); Utility.ShowMessageBox("UPDATE", false, true); // by ldx // 2011-08-09 // 修改保存不能关闭 RefreshUI(saveType); } else { Utility.ShowMessageBox("UPDATE", false, false); } }
void UpdateVehicleCompleted(object sender, UpdateVehicleCompletedEventArgs e) { if (e.Result < 0) { Utility.ShowMessageBox("UPDATE", false, false); RefreshUI(RefreshedTypes.ProgressBar); RefreshUI(saveType); } else { if (oCard_add.Count == 0 && oCard_upd.Count == 0) { Utility.ShowMessageBox("UPDATE", false, true); RefreshUI(RefreshedTypes.ProgressBar); RefreshUI(saveType); } else { _VM.Save_VICardAsync(oCard_add, oCard_upd); } } }
void UpdateVehicleCompleted(object sender, UpdateVehicleCompletedEventArgs e) { if (e.Result < 0) { Utility.ShowMessageBox("UPDATE", false, false); RefreshUI(RefreshedTypes.ProgressBar); RefreshUI(saveType); } else { if (oCard_add.Count == 0 && oCard_upd.Count == 0) { Utility.ShowMessageBox("UPDATE", false, true); RefreshUI(RefreshedTypes.ProgressBar); RefreshUI(saveType); } else _VM.Save_VICardAsync(oCard_add, oCard_upd); } }