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

            frm.printDocumentID = Oid;
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
            {
                refreshTable();
            }
            else
            {
                refreshTable();
            }
        }
        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            var obj = gridView1.GetFocusedDataRow();

            if (obj == null)
            {
                return;
            }

            var frm = new BarcodePrintForm();

            frm.printDocumentID = obj["Code"].ToString();
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
            {
                refreshTable();
            }
            else
            {
                refreshTable();
            }
        }