public void HideTab(string key) { if (this.TabPages.ContainsKey(key)){ this.HideTab(this.TabPages[key]); } }