Esempio n. 1
0
 private void ButtonConfirmPublisherEdit_Click(object sender, EventArgs e)
 {
     new DBQuery().DBUpdatePublisher(PublisherForm.PublisherName, PublisherForm.PublisherMark, textBoxPublisherName.Text, textBoxPublisherMark.Text);
     pf1.RefreshGrid("Publishers");
     MessageBox.Show("Publisher updated!");
     Close();
 }
Esempio n. 2
0
 private void ButtonConfirmPublisherAdd_Click(object sender, EventArgs e)
 {
     if (new DBQuery().DBInsertPublisher(textBoxPublisherName.Text, textBoxPublisherMark.Text))
     {
         pf1.RefreshGrid("Publishers");
         MessageBox.Show("Publisher added!");
     }
 }