/* * Returns currently selected book in DataGridView */ private LibrarianDS.rentRow getSelectedRent() { DataRowView current = (DataRowView)dgvRents.CurrentRow.DataBoundItem; LibrarianDS.rentRow selectedRent = (LibrarianDS.rentRow)current.Row; return(selectedRent); }
public frmRent(LibrarianDS.rentRow rentRow) { InitializeComponent(); this.rentRow = rentRow; this.bookRow = rentRow.tbl_bookRow; this.userRow = rentRow.userRow; btnRent.Text = "Razduži"; btnRent.Enabled = true; }