private void PictureBoxDelete_Click(object sender, EventArgs e) { try { conn.OpenConnection(); if (conn.DeleteWithID("Offers", id)) { MessageBox.Show("Offer is successfully deleted."); PageController.Offers(); this.Hide(); this.Dispose(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { conn.CloseConnection(); } }
private void ButtonOffers_Click(object sender, EventArgs e) { PageController.Offers(); this.Hide(); this.Dispose(); }
private void PictureBoxBack_Click(object sender, EventArgs e) { PageController.Offers(); this.Hide(); this.Dispose(); }