Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form_cliente.id = "0";
            Form_cliente clie = new Form_cliente();

            clie.Show(this);
        }
Exemple #2
0
        private void dtgClientes_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int             selectedrowindex = dtgClientes.SelectedCells[0].RowIndex;
            DataGridViewRow selectedRow      = dtgClientes.Rows[selectedrowindex];
            string          codigo           = Convert.ToString(selectedRow.Cells["id"].Value);

            Form_cliente.id = codigo;
            Form_cliente clie = new Form_cliente();

            clie.Show(this);
        }