/// <summary> /// 添加监控面板 /// </summary> /// <param name="tabName"></param> /// <returns></returns> public async virtual Task <WatchTab> AddTabAsync(string tabName) { if (WatchTabs.Any(p => p.TabName == tabName)) { return(null); } var watchTab = new WatchTab(tabName); WatchTabs.Add(watchTab); this.ExecuteTabAddEvent(watchTab); return(watchTab); }
/// <summary> /// 获取当前控制面板 /// </summary> /// <param name="tabName"></param> /// <returns></returns> public virtual WatchTab Find(string tabName) { return(WatchTabs.Find(p => p.TabName == tabName)); }