예제 #1
0
        private void Add_Click(object sender, EventArgs e)
        {
            Add_Change_Form add = new Add_Change_Form();

            add.ShowDialog();
            Program.film.add(add.film);

            return;
        }
예제 #2
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         rtb_Description.Text = Program.film.index(e.RowIndex).Description;
         pb_photo.Image       = Program.film.index(e.RowIndex).Photo;
     }
     if (e.ColumnIndex == 0 && e.RowIndex > -1)
     {
         Add_Change_Form change = new Add_Change_Form(Program.film.index(e.RowIndex));
         change.ShowDialog();
         Program.film.change(change.film, e.RowIndex);
         return;
     }
 }