예제 #1
0
 private void EditGroupToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentParentId == 0)
     {
         //frmModifyDeviceInfo
         return;
     }
     int groupId = int.Parse(treeListDevice.FocusedNode.Tag.ToString().Split(';')[0]);
     frmGroup group = new frmGroup();
     group.Opt = Util.Operateion.Update;
     group.GroupId = groupId;
     group.ShowDialog(this);
     BuildDeviceTree();
 }
예제 #2
0
        private void AddGroupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //  if (CurrentParentId == 0)
               // {

                //return;
               // }
            frmGroup group = new frmGroup();
            group.Opt = Util.Operateion.Add;
            group.ParentGroupId =CurrentParentId;//��Ŀ¼��IDΪ1
            group.ShowDialog(this);
            treeListDevice.Nodes.Clear();
            BuildDeviceTree();
        }