예제 #1
0
 private void btnNewGroup_Click(object sender, EventArgs e)
 {
     try
     {
         int id = TextUtils.ToInt(treeData.FocusedNode.GetValue(colIDTree));
         frmFile3DDienTuGroupcs frm = new frmFile3DDienTuGroupcs();
         frm.ParentID = id;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _curentNode = frm.CurentNode;
             loadTree();
         }
     }
     catch (Exception)
     {
     }
 }
예제 #2
0
 private void btnEditGroup_Click(object sender, EventArgs e)
 {
     try
     {
         int id = TextUtils.ToInt(treeData.FocusedNode.GetValue(colIDTree));
         if (id == 0)
         {
             return;
         }
         ProductGroupModel      model = (ProductGroupModel)ProductGroupBO.Instance.FindByPK(id);
         frmFile3DDienTuGroupcs frm   = new frmFile3DDienTuGroupcs();
         frm.Model    = model;
         frm.ParentID = model.ParentID;
         frm.Type     = model.Type;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _curentNode = frm.CurentNode;
             loadTree();
         }
     }
     catch (Exception)
     {
     }
 }