TableTree.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CodeGen;
namespace DockPanelSample
{
public partial class TableTree : WeifenLuo.WinFormsUI.Docking.DockContent
{
public delegate void SelectTableHandle(int id);
public event SelectTableHandle OnSelect;
public TableTree()
{
InitializeComponent();
}
private void TableTree_Load(object sender, EventArgs e)
{
try
{
//this.BindTree();
}
catch //(Exception ex)
{
//this.tvTable.Enabled = false;
//MessageBox.Show(string.Format("数据库连接失败,原因:{0}", ex.ToString()));
//ConnectServer server = new ConnectServer();
//server.ShowDialog();
}
}
public void BindTree()
{
this.BindTable();
this.tvTable.Enabled = true;
}
private void BindTable()
{
this.SetNodes();
}
/// <summary>
/// 设置子节点
/// </summary>
/// <param name="node">父节点</param>
/// <author>天志</author>
/// <log date="2007-09-01">创建</log>
private void SetNodes()
{
this.tvTable.Nodes.Clear();
// 添加表
后面还有 125 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。