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); }
private static string ModifyMessage(SecretaryST.Structs.GroupIndexAmountStruct groupIndexAmount) { string msg = "Group is already full. Group type - '" + groupIndexAmount.Amnt + "', Group nr - '" + groupIndexAmount.GroupIndex + "'"; return(msg); }
public static void GroupFullAlert(Structs.GroupIndexAmountStruct data) { AlertMsg(title: "Ошибка", msg: EnumCasters.GroupAmountStringRepresent(data.Amnt) + " номер - '" + data.GroupIndex + "' уже полная"); }
public GroupFullException(SecretaryST.Structs.GroupIndexAmountStruct groupIndexAmount) : base(ModifyMessage(groupIndexAmount)) { this.groupIndexAmount = groupIndexAmount; }