public Node(string s, main_form.node_Role Role, main_form f, Size size)
 {
     InitializeComponent();
     this.BackColor = System.Drawing.Color.Transparent;
     this.f         = f;
     this.Role      = Role;
     left           = null;
     Right          = null;
     father         = null;
     name           = new Label();
     this.Controls.Add(name);
     name.BackColor = System.Drawing.Color.Transparent;
     this.Size      = size;
     if (Role == main_form.node_Role.real)
     {
         this.BackgroundImage = global::tree.Properties.Resources.node;
     }
     else
     {
         this.BackgroundImage = global::tree.Properties.Resources.node_temp;
     }
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     set_lable(s);
     name.MouseClick += name_MouseClick;
     this.MouseClick += name_MouseClick;
 }
 public Add_Root(main_form f)
 {
     InitializeComponent();
     this.f = f;
 }
Пример #3
0
 public ADD(main_form f, Node n)
 {
     InitializeComponent();
     this.f = f;
     this.n = n;
 }