Esempio n. 1
0
        private void frmBookRec_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmBookInfo frmBookIn = new frmBookInfo();

            frmBookIn.Show();
        }
Esempio n. 2
0
        private void dataGridView1_RowMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                DataGridViewRow row = dataGridView1.SelectedRows[0];
                this.Hide();
                frmBookInfo frmBook = new frmBookInfo();

                frmBook.Show();


                frmBook.txtBookId.Text    = row.Cells[0].Value.ToString();
                frmBook.txtTitle.Text     = row.Cells[1].Value.ToString();
                frmBook.txtAuthor.Text    = row.Cells[2].Value.ToString();
                frmBook.txtPublisher.Text = row.Cells[3].Value.ToString();
                frmBook.cmbCategory.Text  = row.Cells[4].Value.ToString();
                frmBook.nudQuantity.Value = Convert.ToDecimal(row.Cells[5].Value.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 3
0
        private void bookToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmBookInfo frmBook = new frmBookInfo();

            frmBook.Show();
        }