コード例 #1
0
        private void gridClaseVehi_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var id = getID();

            var claseVeh = CClaseDeVehiculo.GetClaseDeVehiculo(id);

            txtNombClaseVehi.Text = claseVeh.Descripcion;
        }
コード例 #2
0
        private void gridClaseVehi_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
        {
            if (e.StateChanged != DataGridViewElementStates.Selected)
            {
                return;
            }
            var id = getID();

            var claseVeh = CClaseDeVehiculo.GetClaseDeVehiculo(id);

            txtNombClaseVehi.Text = claseVeh.Descripcion;
        }