Beispiel #1
0
        private void btnNewGroup_Click(object sender, EventArgs e)
        {
            frmStock frm = new frmStock();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                //_curentNode = frm.CurentNode;
                loadTree();
            }
        }
Beispiel #2
0
 private void btnEditGroup_Click(object sender, EventArgs e)
 {
     try
     {
         int id = TextUtils.ToInt(treeData.FocusedNode.GetValue(colIDTree));
         if (id == 0)
         {
             return;
         }
         AssemblyStockModel model = (AssemblyStockModel)AssemblyStockBO.Instance.FindByPK(id);
         frmStock           frm   = new frmStock();
         frm._Stock = model;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             loadTree();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }