public override void Save()
        {
            BlogPublishingPluginSettings settings = TemporaryBlogSettings.PublishingPluginSettings;

            settings.ClearOrder();
            int i = 0;

            foreach (ListViewItem lvi in listViewPlugins.Items)
            {
                ContentSourceInfo csi = (ContentSourceInfo)lvi.Tag;
                settings.Set(csi.Id, lvi.Checked, i++);
            }

            base.Save();
        }
        private void UpdatePluginList()
        {
            BlogPublishingPluginSettings settings = TemporaryBlogSettings.PublishingPluginSettings;

            List <ContentSourceInfo> plugins = new List <ContentSourceInfo>(
                Join(ContentSourceManager.EnabledPublishNotificationPlugins, ContentSourceManager.EnabledHeaderFooterPlugins));

            plugins.Sort(ContentSourceManager.CreateComparison(settings));

            listViewPlugins.BeginUpdate();
            try
            {
                listViewPlugins.Items.Clear();
                imgListPlugins.Images.Clear();

                foreach (ContentSourceInfo csi in plugins)
                {
                    imgListPlugins.Images.Add(BidiHelper.Mirror(csi.Image));
                    ListViewItem item = new ListViewItem();
                    item.Tag        = csi;
                    item.Text       = " " + csi.Name;
                    item.ImageIndex = imgListPlugins.Images.Count - 1;
                    item.Checked    = settings.IsEnabled(csi.Id) ?? false;
                    listViewPlugins.Items.Add(item);
                }

                if (listViewPlugins.Items.Count > 0)
                {
                    listViewPlugins.Items[0].Selected = true;
                }
            }
            finally
            {
                listViewPlugins.EndUpdate();
            }

            ManageMoveButtons();
        }