public static async Task Calc( ObservableCollection <ContentExpEntry> expsOld, ObservableCollection <ContentExpEntry> expsNew) { _expsNew = expsNew; _expsOld = expsOld; CalcDeltaExpsDelegate d = CalcDeltaExps; await Task.Run(new Action(d)); }
public static async Task Calc( ObservableCollection <ContentExpEntry> expsOld, ObservableCollection <ContentExpEntry> expsNew) { _expsNew = expsNew; _expsOld = expsOld; CalcDeltaExpsDelegate d = CalcDeltaExps; await Task.Run(new Action(d)); if (_isErrorInCalcDeltaExps) { await Utility.ShowMessageDialog("运算错误,可能是重复ID造成(更新过程正好有经验通过审核)", "建议重新更新。如果反复出现,请告知开发者。"); await Utility.FireErrorReport("数据分析出错", "[exp]"); } }