private void lblNewPurchaseOrder_Click(object sender, EventArgs e)
        {
            frmNewPurchase newpur = new frmNewPurchase();

            newpur.lblUserName.Text = lblUserName.Text;
            newpur.lblUserType.Text = lblUserType.Text;
            newpur.ShowDialog();
        }
Ejemplo n.º 2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewCell cell = null;

            foreach (DataGridViewCell selectedCell in dataGridView1.SelectedCells)
            {
                cell = selectedCell;
                break;
            }
            if (cell != null)
            {
                DataGridViewRow row = cell.OwningRow;
                np.passv1 = row.Cells[0].Value.ToString();
                np.passv2 = row.Cells[1].Value.ToString();
                np.passv3 = row.Cells[2].Value.ToString();
                np.passv4 = row.Cells[3].Value.ToString();
                np.passv6 = row.Cells[4].Value.ToString();
                np.passv5 = row.Cells[5].Value.ToString();
            }

            this.Hide();
            np.ShowDialog();
        }