Esempio n. 1
0
 private void ResultDataSheet_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 4)
     {
         frmMain.MainPanel.Controls.Clear();
         AdminBookDetailForm bookDetailAdminForm = new AdminBookDetailForm(frmMain, e.RowIndex + (nPage - 1) * 10);
         bookDetailAdminForm.TopLevel = false;
         bookDetailAdminForm.Dock     = DockStyle.Fill;
         frmMain.MainPanel.Controls.Add(bookDetailAdminForm);
         bookDetailAdminForm.Show();
     }
 }
Esempio n. 2
0
        private void BookRecordSheet_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 2)
            {
                if (ClassBackEnd.BorrowHistoryIDown(e.RowIndex) == 2)
                {
                    MessageBox infobox = new MessageBox(25);
                    infobox.ShowDialog();
                    infobox.Dispose();
                }
                else
                {
                    frmMain.MainPanel.Controls.Clear();

                    AdminBookDetailForm bookDetailAdminForm = new AdminBookDetailForm(frmMain, 0);
                    bookDetailAdminForm.TopLevel = false;
                    bookDetailAdminForm.Dock     = DockStyle.Fill;
                    frmMain.MainPanel.Controls.Add(bookDetailAdminForm);
                    bookDetailAdminForm.Show();
                    frmMain.ReturnButton.Tag = 4;
                }
            }
        }