Esempio n. 1
0
        public static void GroupAlreadyExistsAlert(Structs.GroupIndexAmountStruct data, DistanceGroup gr)
        {
            string msg = EnumCasters.GroupAmountStringRepresent(data.Amnt) + " в составе:\n";

            List <string> names = new List <string>();

            gr.Members.ForEach(p => names.Add(p.Name));

            msg += string.Join("\n", names.ToArray());
            msg += "\nуже существует!";

            AlertMsg(title: "Ошибка", msg: msg);
        }
Esempio n. 2
0
        private static string ModifyMessage(SecretaryST.Structs.GroupIndexAmountStruct groupIndexAmount)
        {
            string msg = "Group is already full. Group type - '" + groupIndexAmount.Amnt + "', Group nr - '" + groupIndexAmount.GroupIndex + "'";

            return(msg);
        }
Esempio n. 3
0
 public static void GroupFullAlert(Structs.GroupIndexAmountStruct data)
 {
     AlertMsg(title: "Ошибка", msg: EnumCasters.GroupAmountStringRepresent(data.Amnt) + " номер - '" + data.GroupIndex + "' уже полная");
 }
Esempio n. 4
0
 public GroupFullException(SecretaryST.Structs.GroupIndexAmountStruct groupIndexAmount) : base(ModifyMessage(groupIndexAmount))
 {
     this.groupIndexAmount = groupIndexAmount;
 }