public void Remove(string key, IMyUC uc) { if (userControl.ContainsKey(key)) { this.userControl.Remove(key); } }
public void Add(string key, IMyUC uc) { if (!userControl.ContainsKey(key)) { this.userControl.Add(key, uc); } }