Example #1
0
 protected void AddColor(string username, Color color)
 {
     if (UserColors.ContainsKey(username))
     {
         UserColors[username] = color;
     }
     else
     {
         UserColors.Add(username, color);
     }
 }
Example #2
0
 protected Color GetColor(string username)
 {
     return(UserColors.ContainsKey(username)
         ? UserColors[username]
         : Color.White);
 }