Ejemplo n.º 1
0
 private void buttonADD_Click(object sender, EventArgs e)
 {
     using (AddEdit_ShowForm frm = new AddEdit_ShowForm(null, 0))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             sHOWBOOKBindingSource.DataSource = db.SHOWBOOKs.ToList();
         }
     }
 }
Ejemplo n.º 2
0
 private void dgvShow_DoubleClick(object sender, EventArgs e)
 {
     model.ThreatreID = Convert.ToInt32(dgvShow.CurrentRow.Cells["TheatreID"].Value);
     model.Date       = Convert.ToDateTime(dgvShow.CurrentRow.Cells["Date"].Value);
     using (AddEdit_ShowForm frm = new AddEdit_ShowForm(sHOWBOOKBindingSource.Current as SHOWBOOK, model.ThreatreID))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             sHOWBOOKBindingSource.DataSource = db.THEATREBOOKs.ToList();
         }
     }
 }