コード例 #1
0
 public static async Task Calc(
     ObservableCollection <ContentExpEntry> expsOld,
     ObservableCollection <ContentExpEntry> expsNew)
 {
     _expsNew = expsNew;
     _expsOld = expsOld;
     CalcDeltaExpsDelegate d = CalcDeltaExps;
     await Task.Run(new Action(d));
 }
コード例 #2
0
        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]");
            }
        }