Exemplo n.º 1
0
        private void btnAddType_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmAddType frm = new frmAddType();

            frm.ShowDialog();
            LoadTreeList();
            TreeLoad();//Set Icon
        }
Exemplo n.º 2
0
        private void btnUpdateType_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            TreeListNode node       = tree.FocusedNode;
            object       reportName = node.GetValue("ID");
            int          ID         = int.Parse(Math.Truncate(double.Parse(reportName.ToString())).ToString());
            frmAddType   frm        = new frmAddType(ID);

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