private void ShowDataDic(DBSource dBSource, string dbname, string tbname, string html) { var tit = $"数据字典-[{dbname}].[{tbname}]"; foreach (TabPage tab in this.TabControl.TabPages) { if (tab.Text.Equals(tit)) { (tab as UC.WebTab).SetHtml(html); TabControl.SelectedTab = tab; return; } } UC.WebTab panel = new WebTab(); panel.SetHtml(html); panel.Text = tit; this.TabControl.TabPages.Add(panel); this.TabControl.SelectedTab = panel; }
private void ShowTables(string dbname, string html) { var tit = $"查看{dbname}的库表"; foreach (TabPage tab in this.TabControl.TabPages) { if (tab.Text.Equals(tit)) { (tab as UC.WebTab).SetHtml(html); TabControl.SelectedTab = tab; return; } } UC.WebTab panel = new WebTab(); panel.SetHtml(html); panel.Text = tit; panel.OnSearch += (w) => { }; this.TabControl.TabPages.Add(panel); this.TabControl.SelectedTab = panel; }