Exemplo n.º 1
0
 public static void SetErrorMessage(MessageEnum?received)
 {
     ErrorMessage = null;
     if (received != null)
     {
         ErrorMessage = PosisionEnumHelper.GetDisplayName(received);
     }
 }
Exemplo n.º 2
0
        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)}";
        }