public static void UpdateMessage(IMessageThrowable messageThrower) { var s = from MessageBase mb in Messages where mb.Manager == messageThrower || mb.Source == messageThrower select mb; //DO NOT REMOVE LINE BELOW! LINQ CREATE INDEXES INSTEAD OF STATIC LIST List <MessageBase> lst = new List <MessageBase>(s); foreach (MessageBase mb in lst) { Messages.Remove(mb); } foreach (MessageBase mb in messageThrower.Messages) { Messages.Add(mb); } }
public EXEPathNotSetMessage(string argSourceName, string argTargetName, int level, IMessageThrowable source) : base(level, source) { ArgSourceName = argSourceName; ArgTargetName = argTargetName; }