示例#1
0
 private void lvLichChieu_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (lvLichChieu.SelectedItems.Count > 0)
     {
         //Xu lí
         frmTheatre frm = new frmTheatre();
         if (frm.ShowDialog() == DialogResult.OK)
         {
         }
     }
 }
 private void lvLichChieu_Click(object sender, EventArgs e)
 {
     if (lvLichChieu.SelectedItems.Count > 0)
     {
         timer1.Stop();
         ShowTimes  showTimes = lvLichChieu.SelectedItems[0].Tag as ShowTimes;
         Movie      movie     = cboFilmName.SelectedItem as Movie;
         frmTheatre frm       = new frmTheatre(showTimes, movie);
         this.Hide();
         frm.ShowDialog();
         this.OnLoad(null);
         this.Show();
     }
 }