/// <summary>
 /// Method OnToolStripComboBoxConfigEditorPluginSelectedIndexChanged.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Instance of EventArgs.</param>
 private void OnToolStripComboBoxConfigEditorPluginSelectedIndexChanged(object sender, EventArgs e)
 {
     if (this._currentConfigEditorPlugin != this._configEditorPluginList[this.toolStripComboBoxConfigEditorPlugin.SelectedIndex])
     {
         if (!this.SaveConfigDialog())
         {
             this.RefreshPropertyGrid(null);
             this.ConfigFile = null;
             this._currentConfigEditorPlugin = this._configEditorPluginList[this.toolStripComboBoxConfigEditorPlugin.SelectedIndex];
         }
         else
         {
             this.toolStripComboBoxConfigEditorPlugin.SelectedIndex = this._configEditorPluginList.IndexOf(this._currentConfigEditorPlugin);
         }
     }
 }
        /// <summary>
        /// Method ConfigEditorPluginListContainsType.
        /// </summary>
        /// <param name="configEditorPlugin">IWinFormConfigEditorPlugin instance.</param>
        /// <returns>true if <paramref name="configEditorPlugin"/> already exists; otherwise, false.</returns>
        private bool ConfigEditorPluginListContainsType(IWinFormConfigEditorPlugin configEditorPlugin)
        {
            if (this._configEditorPluginList == null || this._configEditorPluginList.Count < 1)
            {
                return(false);
            }

            Type sourceType = configEditorPlugin.GetType();

            foreach (IWinFormConfigEditorPlugin item in this._configEditorPluginList)
            {
                if (sourceType.Equals(item.GetType()))
                {
                    return(true);
                }
            }

            return(false);
        }