public void AddActivity(Activity Activity) { try { Activity_db.AddActvity(Activity); } catch (Exception e) { MessageBox.Show("There was an error adding to the Database \n" + e, "Database Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }