Ejemplo n.º 1
0
        private void btnUpdateGroupType_Click(object sender, EventArgs e)
        {
            TreeListNode            node       = tree.FocusedNode;
            object                  reportName = node.GetValue("ID");
            int                     ID         = int.Parse(Math.Truncate(double.Parse(reportName.ToString())).ToString());
            frmAddGroupTypeQuestion frm        = new frmAddGroupTypeQuestion(ID, -1);

            frm.ShowDialog();
            LoadTreeList();
            TreeLoad();//Set Icon
        }
Ejemplo n.º 2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            TreeListNode node       = tree.FocusedNode;
            string       reportName = node.GetValue("PARENTID").ToString();

            string[] arrListStr = reportName.Split('.');
            int      parentID   = int.Parse(arrListStr[0]);

            if (parentID == 0)
            {
                parentID = int.Parse(node.GetValue("ID").ToString().Split('.')[0]);
            }
            frmAddGroupTypeQuestion frm = new frmAddGroupTypeQuestion(-1, parentID);

            frm.ShowDialog();
            LoadTreeList();
            TreeLoad();//Set Icon
        }