Example #1
0
 private void dgvMovies_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         if (dgvMovies.SelectedRows.Count > 0)
         {
             //open Movie Detail
             int id    = Convert.ToInt32(dgvMovies.SelectedRows[0].Cells["No"].Value.ToString());
             var movie = new MovieView();
             movie.GetMovie(id);
             movie.Show();
         }
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
     }
 }
Example #2
0
        private void tsbSave_Click(object sender, EventArgs e)
        {
            var movie = new MovieView();

            movie.Show();
        }