示例#1
0
        private void sbAddNew_Click(object sender, EventArgs e)
        {
            var frm = new BarcodePaletNewForm();

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

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

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