private void button2_Click(object sender, EventArgs e)
        {
            FRM_Search frm = new FRM_Search("Product");

            frm.ShowDialog();
            txtProID.Text   = frm.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            txtProName.Text = frm.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            txtPrice.Text   = frm.dataGridView1.CurrentRow.Cells[5].Value.ToString();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            FRM_Search frm = new FRM_Search("Supplier");

            frm.ShowDialog();
            txtSupID.Text     = frm.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            txtSupName.Text   = frm.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            txtSupMobile.Text = frm.dataGridView1.CurrentRow.Cells[2].Value.ToString();
        }
示例#3
0
        private void btnCUSTOMER_Click(object sender, EventArgs e)
        {
            FRM_Search frm = new FRM_Search("customer");

            frm.ShowDialog();
            txtCuID.Text     = frm.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            txtCUName.Text   = frm.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            txtCUMobile.Text = frm.dataGridView1.CurrentRow.Cells[3].Value.ToString();
        }
示例#4
0
        private void btnproduct_Click(object sender, EventArgs e)
        {
            FRM_Search frm = new FRM_Search("Product");

            frm.ShowDialog();
            txtProID.Text   = frm.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            txtProName.Text = frm.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            txtPrice.Text   = frm.dataGridView1.CurrentRow.Cells[6].Value.ToString();

            totalQTY = float.Parse(frm.dataGridView1.CurrentRow.Cells[7].Value.ToString());
        }