Critical Eror - Expressions Stats
-
Используем в Expressions Stats к примеру оператор IF
https://yadi.sk/i/NS3wS7jd32tjXL
Если мы используем не цифровые значения, как на примере:
https://yadi.sk/i/LViOs1Uy32tnEr
Программа даст сохранить такой экспрешен, но при обращении к попапу (в котором находится такой неисправный стат) выдаст крит:
https://yadi.sk/i/Vy--_0Ki32toFJSystem.FormatException: Input string was not in a correct format.
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.String.System.IConvertible.ToDouble(IFormatProvider provider)
at Hand2NoteCore.DataView.ExpressionStatCellContentViewLogical.Update()
at Hand2NoteCore.DataView.ExpressionStatCellContentViewLogical..ctor(StatCellContent`1 statCellContent, StatisticsViewData data, StatisticsViewContext context)
at Hand2NoteCore.DataView.StatsTableViewLogical.GetContentLogicalView(StatsTableCell cell, StatisticsViewData data, StatisticsViewContext context)
at Hand2NoteCore.DataView.StatsTableViewLogical.(StatsTableCell )
at Hand2NoteCore.DataView.StatsTableViewLogical..ctor(StatsTable statTable, StatisticsViewData data, StatisticsViewContext context, FrameworkElementLogical parent)
at Hand2NoteCore.DataView.StatPageItemViewLogical..ctor(StatPageItem statPageItem, StatisticsViewData data, StatisticsViewContext context, HudDeltaParams hudDeltaParams)
at Hand2NoteCore.DataView.StatPageViewLogical..ctor(StatPage statPage, StatisticsViewData data, StatisticsViewContext context)
at Hand2NoteCore.DataView.PopupViewLogical..ctor(Popup popup, StatisticsViewData data, StatisticsViewContext context)
at Hand2NoteCore.DataView.MainPopupLogical..ctor(StatisticsViewData data, StatisticsViewContext context, PopupProfile popupProfile)
at Hand2NoteCore.DataView.ManualPopupHelper.OpenMainPopup(StatisticsViewData data, StatisticsViewContext context, PopupProfile popupProfile, Int32 firstSelectedTabIndex)
at Hand2NoteCore.DataView.StatisticsPopupService.ShowMainPopup(String nickname, Rooms room, GameTypeOption gameType, StatisticsViewContext context, Hand currentHand, PlayersStatisticsData psd)
at Hand2NoteCore.Database.PlayersListViewModel.<OpenMainPopupExecute>d__98.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
-
Принято.