Esempio n. 1
0
        private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmAddPart frm = new frmAddPart();

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

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