private void AddForum_Click(object sender, EventArgs e) { if (unmoderatedForums != null) { int forumID = -1; try { forumID = Int32.Parse(unmoderatedForums.SelectedItem.Value); } catch {} bool notify = (emailNotification == null) ? false : emailNotification.Checked; if (forumID > -1) { ModeratedForum forum = new ModeratedForum(); forum.Username = Username; forum.ForumID = forumID; forum.EmailNotification = notify; Users.AddModeratedForumForUser(forum); SkinLogic(); } } }