/// <summary>
        /// The ButtonModify_Click method.
        /// </summary>
        /// <param name="sender">The <paramref name="sender"/> parameter.</param>
        /// <param name="args">The <paramref name="args"/> parameter.</param>
        private void ButtonModify_Click(object sender, EventArgs args)
        {
            if (lvAnalyticBehaviors.CheckedItems.Count == 0)
            {
                return;
            }

            var analyticBehavior = (AnalyticBehavior)lvAnalyticBehaviors.CheckedItems[0].Tag;

            // Show the AddAnalyticBehaviorForm dialog.
            DialogResult result;

            using (var addAnalyticBehaviorForm = new AddAnalyticBehaviorForm(_selectedAnalyticConfig, analyticBehavior))
            {
                result = addAnalyticBehaviorForm.ShowDialog();
            }

            // If the dialog was closed without clicking OK then skip the refresh.
            if (result != DialogResult.OK)
            {
                return;
            }

            // Refresh the items in the list view to include the newly modified analytic behavior.
            lvAnalyticBehaviors.Items.Clear();
            PopulateAnalyticBehaviors();
            lvAnalyticBehaviors.Refresh();
        }
        /// <summary>
        /// The ButtonNewBehavior_Click method.
        /// </summary>
        /// <param name="sender">The <paramref name="sender"/> parameter.</param>
        /// <param name="args">The <paramref name="args"/> parameter.</param>
        private void ButtonNewBehavior_Click(object sender, EventArgs args)
        {
            // Show the AddAnalyticBehaviorForm dialog.
            DialogResult result;

            using (var addAnalyticBehaviorForm = new AddAnalyticBehaviorForm(_selectedAnalyticConfig))
            {
                result = addAnalyticBehaviorForm.ShowDialog();
            }

            // If the dialog was closed without clicking OK then skip the refresh.
            if (result != DialogResult.OK)
            {
                return;
            }

            // Refresh the items in the list view to include the newly added analytic behavior.
            lvAnalyticBehaviors.Items.Clear();
            PopulateAnalyticBehaviors();
            lvAnalyticBehaviors.Refresh();
        }