コード例 #1
0
        /*
         * 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);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
ファイル: frmRent.cs プロジェクト: gjakimenko/Librarian
        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;
        }