예제 #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            FrmDialogSucursales form = new FrmDialogSucursales();

            form.tipooperacion = "N";
            form.ShowDialog();
        }
예제 #2
0
        private void DataGridSedes_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0)
            {
                int id = Int32.Parse(this.DataGridSedes.Rows[e.RowIndex].Cells["id"].Value.ToString());
                //string codigo = this.DataGridSedes.Rows[e.RowIndex].Cells[1].Value.ToString();
                //string nombre   = this.DataGridSedes.Rows[e.RowIndex].Cells[2].Value.ToString();

                FrmDialogSucursales sucursal = new FrmDialogSucursales();
                sucursal.tipooperacion = "V";
                sucursal.id            = id;
                sucursal.ShowDialog();
            }
        }