/// <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 <DiagnosticServiceSummary> addedItems)
        {
            addedItems = new List <DiagnosticServiceSummary>();
            DiagnosticServiceEditorComponent editor   = new DiagnosticServiceEditorComponent();
            ApplicationComponentExitCode     exitCode = ApplicationComponent.LaunchAsDialog(
                this.Host.DesktopWindow, editor, SR.TitleAddDiagnosticService);

            if (exitCode == ApplicationComponentExitCode.Accepted)
            {
                addedItems.Add(editor.DiagnosticServiceSummary);
                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 <DiagnosticServiceSummary> items, out IList <DiagnosticServiceSummary> editedItems)
        {
            editedItems = new List <DiagnosticServiceSummary>();
            DiagnosticServiceSummary item = CollectionUtils.FirstElement(items);

            DiagnosticServiceEditorComponent editor   = new DiagnosticServiceEditorComponent(item.DiagnosticServiceRef);
            ApplicationComponentExitCode     exitCode = LaunchAsDialog(
                this.Host.DesktopWindow, editor, SR.TitleUpdateDiagnosticService + " - " + "(" + item.Id + ") " + item.Name);

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