void OnAddUser(string[] args) { try { var u = User.Create(args[0]); u.Country = args[1]; int cpu; int.TryParse(args[2], out cpu); u.Cpu = cpu; u.LobbyID = Convert.ToInt32(args[3]); ExistingUsers.Add(u.Name, u); UserAdded(this, new EventArgs <User>(u)); } catch (Exception e) { //TraceError ensure bright red coloured message (WriteLine looked harmless): Trace.TraceError("Error was thrown while processing chat command ADDUSER (check if this event trigger faulty code in application): " + e); } }