private void btnCancel_Click(object sender, EventArgs e)
        {
            Clear();
            this.Close();
            frm_Search search = new frm_Search();

            search.Show();
        }
Example #2
0
        private void btnChooseBarcoe_Click(object sender, EventArgs e)
        {
            frm_Search frm = new frm_Search("Product");

            frm.ShowDialog();
            txtBarcode.Text = frm.dgvSearch.SelectedRows[0].Cells[1].Value.ToString();
            txtName.Text    = frm.dgvSearch.SelectedRows[0].Cells[2].Value.ToString();
        }
 private void btnCancel_Click(object sender, EventArgs e)
 {
     Clear();
     this.Close();
     frm_Search search = new frm_Search();
     search.Show();
 }