Example #1
0
        /// <summary>
        /// Deletes the user selected bugs from the web service and bug table.
        /// </summary>
        private void DeleteSelectedBugs()
        {
            // For each selected bug, remove it from the service and view
            foreach (BugViewModel bug in SelectedBugs)
            {
                // Delete using web service
                _Service.DeleteBug(bug.ToBugModel());
                // Notify listeners of delete operation
                _Messenger.NotifyColleagues(Messages.SelectedBugDeleted, bug);

                _Notifier.AddNotification(new Notification {
                    ImageUrl = Notification.ICON_DELETE,
                    Title    = "Bug Deleted",
                    Message  = "The bug " + bug.Name + " has been deleted."
                });
            }
        }