Пример #1
0
        private void btnViewTicketInfo_Click(object sender, EventArgs e)
        {
            int intTicketID = Convert.ToInt32(this.dataGridView1.CurrentRow.Cells["TicketID"].Value);
            ViewPawnTicketForm frmViewPawnTicket = new ViewPawnTicketForm(intTicketID);

            frmViewPawnTicket.Show((DockPanel)MainForm.pCurrentWin.Controls["dockPanel1"]);
        }
Пример #2
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex > 0)
     {
         DataGridView dgv = (DataGridView)sender;
         if (dgv.Columns[e.ColumnIndex].Name == "BtnOperation")
         {
             int intTicketID = Convert.ToInt32(this.dataGridView1.CurrentRow.Cells["TicketID"].Value);
             ViewPawnTicketForm frmViewPawnTicket = new ViewPawnTicketForm(intTicketID);
             frmViewPawnTicket.Show((DockPanel)MainForm.pCurrentWin.Controls["dockPanel1"]);
         }
     }
 }