您的位置:首页 >> 编程开发 >> .NET >> C# >> 正文
C# RSS
 

『原创』C#中TreeView类操作全攻略:建立树,新增节点,删除节点,修改节点,拖动节点,与Oracle数据库交互…

http://www.rdxx.com 04年08月04日 12:12 Blog 我要投稿

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using com.prm.client.tools;
using System.Data.OracleClient;
using com.prm.client.common;
using com.prm.client.sysmanager.popedom;

namespace com.prm.client.forms
{
 /// <summary>
 /// Form1 的摘要说明。
 /// </summary>
 public class SM_FunctionMaintenance : System.Windows.Forms.Form
 {
  private System.Windows.Forms.GroupBox groupBox1;
  private System.Windows.Forms.GroupBox groupBox2;
  private System.Windows.Forms.TreeView trv_Function;
  private System.Windows.Forms.Label lbl_Detail;
  private System.Windows.Forms.Label lbl_BelongTo;
  private System.Windows.Forms.Label lbl_FunEntity;
  private System.Windows.Forms.Label lbl_Type;
  private System.Windows.Forms.Label lbl_IsInterface;
  private System.Windows.Forms.Label lbl_Tag;
  private System.Windows.Forms.Label lbl_Name;
  private System.Windows.Forms.CheckBox ckb_IsInterface;
  private System.Windows.Forms.ComboBox cbo_Type;
  private System.Windows.Forms.TextBox txt_Detail;
  private System.Windows.Forms.TextBox txt_BelongTo;
  private System.Windows.Forms.TextBox txt_FunEntity;
  private System.Windows.Forms.TextBox txt_Tag;
  private System.Windows.Forms.TextBox txt_Name;
  private System.Data.DataSet dataSet1;
  private System.Data.DataColumn dataColumn1;
  private System.Data.DataColumn dataColumn2;
  private System.Data.DataColumn dataColumn3;
  private System.Data.DataColumn dataColumn4;
  private System.Data.DataColumn dataColumn5;
  private System.Data.DataColumn dataColumn6;
  private System.Data.DataColumn dataColumn7;
  private System.Data.DataColumn dataColumn8;
  private System.Data.DataColumn dataColumn9;
  private System.Data.DataColumn dataColumn10;
  private System.Data.DataColumn dataColumn11;
  //用来保存功能表中所有的数据
  private System.Data.DataTable funcDataTable;

  //用来保存Connection属性
  private OracleConnection funcTableConn;
  //用来保存数字字典功能类别的数据
  ClientDictionary[] DIC_funcType;
        //用来保存树总的虚拟根节点的ID,默认为0
  public const string ROOT_NODE_VALUE = "0";
  private System.Windows.Forms.Button btn_Help;
  private System.Windows.Forms.Button btn_Remove;
  private System.Windows.Forms.Button btn_Modify;
  private System.Windows.Forms.Button btn_AddSon;
  private System.Windows.Forms.Button btn_AddRoot;
  private System.Windows.Forms.Button btn_Close;

  

  //树结点的临时信息
  /// <summary>
  /// 必需的设计器变量。
  /// </summary>

上一页 下一页


 
 
标签: 拖动 , 删除 , 全攻略 , 交互 , TreeView , Oracle数据库 , C# , , 操作 , IE , 数据 , Oracle , 攻略 打印本文
 
 
  热点搜索
 
 
 



Valid XHTML 1.0 Transitional
Copyright ©2005 - 2008 Rdxx.Com,All Rights Reserved
收藏本页
收藏本站