private void sbAddNew_Click(object sender, EventArgs e)
        {
            var frm = new BarcodeAddNewForm();

            frm.oid = "";
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
            {
                refreshGrid();
            }
            else
            {
                refreshGrid();
            }
        }
        private void gridView2_DoubleClick(object sender, EventArgs e)
        {
            var row = gv.GetFocusedDataRow();

            if (row == null)
            {
                return;
            }
            var frm = new BarcodeAddNewForm();

            frm.isView = isView;
            frm.oid    = row["Code"].ToString();
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
            {
                refreshGrid();
            }
            else
            {
                refreshGrid();
            }
        }