Ejemplo n.º 1
0
        private void sbAddNew_Click(object sender, EventArgs e)
        {
            var frm = new KindOfLabelForm();

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

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

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