public static void SetErrorMessage(MessageEnum?received) { ErrorMessage = null; if (received != null) { ErrorMessage = PosisionEnumHelper.GetDisplayName(received); } }
public static void SetMainStorageInfo(int?succeded, int?failed) { if (succeded == null && failed == null) { MainStorageInfo = ""; return; } MainStorageInfo = $"{succeded} {PosisionEnumHelper.GetDisplayName(MessageEnum.ProducedInfo)}" + $" {failed} { PosisionEnumHelper.GetDisplayName(MessageEnum.CharityInfo)}"; }