/// <summary>
        /// Called to handle the "add" action.
        /// </summary>
        /// <param name="addedItems"></param>
        /// <returns>True if items were added, false otherwise.</returns>
        protected override bool AddItems(out IList <UserSummary> addedItems)
        {
            addedItems = new List <UserSummary>();
            UserEditorComponent          editor   = new UserEditorComponent();
            ApplicationComponentExitCode exitCode = LaunchAsDialog(
                this.Host.DesktopWindow, editor, SR.TitleAddUser);

            if (exitCode == ApplicationComponentExitCode.Accepted)
            {
                addedItems.Add(editor.UserSummary);
                return(true);
            }
            return(false);
        }
        /// <summary>
        /// Called to handle the "edit" action.
        /// </summary>
        /// <param name="items">A list of items to edit.</param>
        /// <param name="editedItems">The list of items that were edited.</param>
        /// <returns>True if items were edited, false otherwise.</returns>
        protected override bool EditItems(IList <UserSummary> items, out IList <UserSummary> editedItems)
        {
            editedItems = new List <UserSummary>();
            UserSummary item = CollectionUtils.FirstElement(items);

            UserEditorComponent          editor   = new UserEditorComponent(item.UserName);
            ApplicationComponentExitCode exitCode = LaunchAsDialog(
                this.Host.DesktopWindow, editor, SR.TitleUpdateUser + " - " + item.UserName);

            if (exitCode == ApplicationComponentExitCode.Accepted)
            {
                editedItems.Add(editor.UserSummary);
                return(true);
            }
            return(false);
        }