Ejemplo n.º 1
0
 private void update_Click(object sender, EventArgs e)
 {
     mediaInsertUpdateCustom = new MediaInsertCustomForm(this);
     mediaInsertUpdateCustom.changeEnableInsert(false);
     if (mediaTable.CurrentRow != null)
     {
         String isbn      = mediaTable.CurrentRow.Cells[1].Value.ToString();
         String title     = mediaTable.CurrentRow.Cells[2].Value.ToString();
         String datetime  = mediaTable.CurrentRow.Cells[3].Value.ToString();
         String publisher = mediaTable.CurrentRow.Cells[4].Value.ToString();
         String type      = mediaTable.CurrentRow.Cells[5].Value.ToString();
         String subject   = mediaTable.CurrentRow.Cells[6].Value.ToString();
         mediaInsertUpdateCustom.changeEnableIsbnTextBox(false);
         mediaInsertUpdateCustom.setData(isbn, title, datetime, publisher, type, subject);
     }
     mediaInsertUpdateCustom.ShowDialog();
 }
Ejemplo n.º 2
0
 private void insert_Click(object sender, EventArgs e)
 {
     mediaInsertUpdateCustom = new MediaInsertCustomForm(this);
     mediaInsertUpdateCustom.changeEnableUpdate(false);
     mediaInsertUpdateCustom.ShowDialog();
 }