Beispiel #1
0
 void newClass_Click(object sender, EventArgs e)
 {
     PropertyNameDialog propertyName = new PropertyNameDialog();
     if (propertyName.ShowDialog() == DialogResult.OK)
     {
         if (!string.IsNullOrWhiteSpace(propertyName.className.Text))
         {
             ClassNode newNode = new ClassNode(propertyName.className.Text, splitContainer1.Panel2);
             treeView1.Nodes.Add(newNode);
         }
     }
 }
Beispiel #2
0
 void addSubChild_Click(object sender, EventArgs e)
 {
     PropertyNameDialog propertyName = new PropertyNameDialog();
     if (propertyName.ShowDialog() == DialogResult.OK)
     {
         ClassNode newNode = new ClassNode(propertyName.className.Text, mPropertyPanel);
         this.Nodes.Add(newNode);
     }
 }