『原创』C#中TreeView类操作全攻略:建立树,新增节点,删除节点,修改节点,拖动节点,与Oracle数据库交互操作(一)(3) funcTableConn=funcTableAccessObject.Connection; //调用QueryAllFuncInfo过程来对变量funcDataTable进行赋值 QueryAllFuncInfo(); const string VALUEMEMBER="valueMember",DISPLAYMEMBER="displayMember",NULLTEXT=""; //调用QueryFuncTypeDictionary过程来对变量DIC_funcType进行赋值 QueryFuncTypeDictionary(); cbo_Type.DataSource = DIC_funcType; cbo_Type.ValueMember = VALUEMEMBER; cbo_Type.DisplayMember = DISPLAYMEMBER; }
/// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); }
#region Windows 窗体设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SM_FunctionMaintenance)); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.trv_Function = new System.Windows.Forms.TreeView(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.lbl_Detail = new System.Windows.Forms.Label(); this.lbl_BelongTo = new System.Windows.Forms.Label(); this.lbl_FunEntity = new System.Windows.Forms.Label();