Esempio n. 1
0
        /*
         * Returns currently selected book in DataGridView
         */
        private LibrarianDS.bookRow getSelectedBook()
        {
            DataRowView current = (DataRowView)dgvCatalog.CurrentRow.DataBoundItem;

            LibrarianDS.bookRow selectedBook = (LibrarianDS.bookRow)current.Row;

            return(selectedBook);
        }
Esempio n. 2
0
        public frmRent(LibrarianDS.bookRow bookRow)
        {
            InitializeComponent();

            this.bookRow = bookRow;

            dtpReturnDate.Value = System.DateTime.Now.Add(new System.TimeSpan(21, 0, 0, 0));
        }
Esempio n. 3
0
        public frmRent(LibrarianDS.bookRow bookRow)
        {
            InitializeComponent();

            this.bookRow = bookRow;

            dtpReturnDate.Value = System.DateTime.Now.Add(new System.TimeSpan(21, 0, 0, 0));
        }
Esempio n. 4
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;
        }
Esempio n. 5
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;
        }
Esempio n. 6
0
 private void refreshPane()
 {
     try
     {
         LibrarianDS.bookRow red = getSelectedBook();
         lblType.Text      = red.typeRow.name;
         lblPublisher.Text = red.publisherRow.name;
         lblCategory.Text  = red.categoryRow.name;
     }
     catch (Exception)
     {
     }
 }