private void btnAddItemType_Click(object sender, EventArgs e)
 {
     try
     {
         frmItemType frm = new frmItemType(0);
         LBShowForm.ShowDialog(frm);
         BuildTree();
     }
     catch (Exception ex)
     {
         LB.WinFunction.LBCommonHelper.DealWithErrorMessage(ex);
     }
 }
 private void btnEditItemType_Click(object sender, EventArgs e)
 {
     try
     {
         if (tvItemType.SelectedNode == null || tvItemType.SelectedNode.Tag == null)
         {
             return;
         }
         DataRow     dr  = tvItemType.SelectedNode.Tag as DataRow;
         frmItemType frm = new frmItemType(LBConverter.ToInt64(dr["ItemTypeID"]));
         LBShowForm.ShowDialog(frm);
         BuildTree();
     }
     catch (Exception ex)
     {
         LB.WinFunction.LBCommonHelper.DealWithErrorMessage(ex);
     }
 }