예제 #1
0
 private void treeView1_NodeMouseDoubleClick(object sender, RadTreeViewEventArgs e)
 {
     var node = treeView1.SelectedNode;
     if (node != null && node.Tag != null)
     {
         var personTest = node.Tag as Personv2;
         if (personTest != null)
         {
             var frm = new FormPerson(personTest);
             frm.Show();
         }
         else
         {
             var guidTest = (System.Guid)node.Tag;
             var p0 = (Personv2)node.Parent.Tag;
             var p1 = Repository.FindPerson(guidTest);
             var frm = new FormMatch(p0, p1);
             frm.Show();
         }
     }
 }
예제 #2
0
 private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     var node = (TreeNode)sender;
     var person = (Personv2)node.Tag;
     if (person != null)
     {
         var personForm = new FormPerson(person);
         personForm.Show(this);
     }
 }