Ejemplo n.º 1
0
        /// <summary>
        /// Handles the Click event of the btnDontRecieveNotfictaions control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
        protected void btnDontRecieveNotfictaions_Click(object sender, EventArgs e)
        {
            var notify = new IssueNotification {
                IssueId = IssueId, NotificationUsername = Page.User.Identity.Name
            };

            IssueNotificationManager.Delete(notify);
            BindNotifications();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Admin Notification List edit Remove Button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelNot_Click(object sender, EventArgs e)
        {
            if (lstNotificationUsers.SelectedItem == null)
            {
                return;
            }

            var notify = new IssueNotification {
                IssueId = IssueId, NotificationUsername = lstNotificationUsers.SelectedItem.Value
            };

            IssueNotificationManager.Delete(notify);
            BindNotifications();
        }