public frmSettings(AddinSettings settings, AddinControl addinControl)
        {
            InitializeComponent();

            this._settings     = settings;
            this._addinControl = addinControl;



            #region miscellaneous
            this.txtQuickSearch.Text         = settings.quickSearchName;
            this.txtFileManagerPath.Text     = settings.FileManagerPath;
            this.chkAdvancedFeatures.Checked = settings.isAdvancedFeatures;
            this.chkSvnSupport.Checked       = settings.isSvnSupport;
            this.chkVcSupport.Checked        = settings.isVcSupport;
            #endregion

            #region linestyle
            // linestyle
            string[] items = new string[] { "A Automatic", "C Custom", "D Direct", "B Bezier",
                                            "LV Lateral Vertical", "LH Lateral Horizental", "no", "OR Orthogonal Rounded",
                                            "OS Orthogonal Square", "TH Tree Horizental", "TV Tree Vertical" };
            string[] itemsActivity = new string[items.Length];
            items.CopyTo(itemsActivity, 0);

            string[] itemsStatechart = new string[items.Length];
            items.CopyTo(itemsStatechart, 0);

            string[] itemsCustom = new string[items.Length];
            items.CopyTo(itemsCustom, 0);

            string[] itemsClass = new string[items.Length];
            items.CopyTo(itemsClass, 0);

            string[] itemsComponent = new string[items.Length];
            items.CopyTo(itemsComponent, 0);

            string[] itemsUseCase = new string[items.Length];
            items.CopyTo(itemsUseCase, 0);

            string[] itemsPackage = new string[items.Length];
            items.CopyTo(itemsPackage, 0);

            string[] itemsDeployment = new string[items.Length];
            items.CopyTo(itemsDeployment, 0);

            string[] itemsCompositeStructure = new string[items.Length];
            items.CopyTo(itemsCompositeStructure, 0);



            this.cboActivityLineStyle.DataSource           = itemsActivity;
            this.cboStatechartLineStyle.DataSource         = itemsStatechart;
            this.cboClassLineStyle.DataSource              = itemsClass;
            this.cboComponentLineStyle.DataSource          = itemsComponent;
            this.cboPackageLineStyle.DataSource            = itemsPackage;
            this.cboCustomLineStyle.DataSource             = itemsCustom;
            this.cboUseCaseLineStyle.DataSource            = itemsUseCase;
            this.cboDeploymentLineStyle.DataSource         = itemsDeployment;
            this.cboCompositeStructureLineStyle.DataSource = itemsCompositeStructure;

            this.cboActivityLineStyle.Text           = settings.ActivityLineStyle;
            this.cboStatechartLineStyle.Text         = settings.StatechartLineStyle;
            this.cboClassLineStyle.Text              = settings.ClassLineStyle;
            this.cboComponentLineStyle.Text          = settings.ComponentLineStyle;
            this.cboPackageLineStyle.Text            = settings.PackageLineStyle;
            this.cboCustomLineStyle.Text             = settings.CustomLineStyle;
            this.cboUseCaseLineStyle.Text            = settings.UseCaseLineStyle;
            this.cboDeploymentLineStyle.Text         = settings.DeploymentLineStyle;
            this.cboCompositeStructureLineStyle.Text = settings.CompositeStructureLineStyle;
            #endregion

            #region load shortcuts search
            EaAddinShortcutSearch sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[0];
            txtBtn1Text.Text          = sh.keyText;
            txtBtn1SearchName.Text    = sh.keySearchName;
            txtBtn1SearchTerm.Text    = sh.keySearchTerm;
            txtBtn1SearchTooltip.Text = sh.keySearchTooltip;

            sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[1];
            txtBtn2Text.Text          = sh.keyText;
            txtBtn2SearchName.Text    = sh.keySearchName;
            txtBtn2SearchTerm.Text    = sh.keySearchTerm;
            txtBtn2SearchTooltip.Text = sh.keySearchTooltip;

            sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[2];
            txtBtn3Text.Text          = sh.keyText;
            txtBtn3SearchName.Text    = sh.keySearchName;
            txtBtn3SearchTerm.Text    = sh.keySearchTerm;
            txtBtn3SearchTooltip.Text = sh.keySearchTooltip;

            sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[3];
            txtBtn4Text.Text          = sh.keyText;
            txtBtn4SearchName.Text    = sh.keySearchName;
            txtBtn4SearchTerm.Text    = sh.keySearchTerm;
            txtBtn4SearchTooltip.Text = sh.keySearchTooltip;

            sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[4];
            txtBtn5Text.Text          = sh.keyText;
            txtBtn5SearchName.Text    = sh.keySearchName;
            txtBtn5SearchTerm.Text    = sh.keySearchTerm;
            txtBtn5SearchTooltip.Text = sh.keySearchTooltip;
            #endregion

            #region set possible services
            List <EaServices.ServiceCall> l_services1  = new List <EaServices.ServiceCall>();
            List <EaServices.ServiceCall> l_services2  = new List <EaServices.ServiceCall>();
            List <EaServices.ServiceCall> l_services3  = new List <EaServices.ServiceCall>();
            List <EaServices.ServiceCall> l_services4  = new List <EaServices.ServiceCall>();
            List <EaServices.ServiceCall> l_services11 = new List <EaServices.ServiceCall>();
            List <EaServices.ServiceCall> l_services12 = new List <EaServices.ServiceCall>();
            List <EaServices.ServiceCall> l_services13 = new List <EaServices.ServiceCall>();
            List <EaServices.ServiceCall> l_services14 = new List <EaServices.ServiceCall>();
            List <EaServices.ServiceCall> l_services15 = new List <EaServices.ServiceCall>();


            foreach (EaServices.ServiceCall service in _settings.allServices)
            {
                l_services1.Add(service);
                l_services2.Add(service);
                l_services3.Add(service);
                l_services4.Add(service);
                l_services11.Add(service);
                l_services12.Add(service);
                l_services13.Add(service);
                l_services14.Add(service);
                l_services15.Add(service);
            }
            #endregion



            #region set services
            cmbService1.DataSource     = _settings.allServices;
            cmbService1.DisplayMember  = "Description";
            cmbService1.ValueMember    = "GUID";
            cmbService1.SelectedValue  = _settings.shortcutsServices[0].GUID;
            txtButton1TextService.Text = _settings.shortcutsServices[0].ButtonText;
            txtServiceTooltip1.Text    = _settings.shortcutsServices[0].Help;


            cmbService2.DataSource     = l_services1;
            cmbService2.DisplayMember  = "Description";
            cmbService2.ValueMember    = "GUID";
            cmbService2.SelectedValue  = _settings.shortcutsServices[1].GUID;
            txtButton2TextService.Text = _settings.shortcutsServices[1].ButtonText;
            txtServiceTooltip2.Text    = _settings.shortcutsServices[1].Help;

            cmbService3.DataSource     = l_services2;
            cmbService3.DisplayMember  = "Description";
            cmbService3.ValueMember    = "GUID";
            cmbService3.SelectedValue  = _settings.shortcutsServices[2].GUID;
            txtButton3TextService.Text = _settings.shortcutsServices[2].ButtonText;
            txtServiceTooltip3.Text    = _settings.shortcutsServices[2].Help;


            cmbService4.DataSource     = l_services3;
            cmbService4.DisplayMember  = "Description";
            cmbService4.ValueMember    = "GUID";
            cmbService4.SelectedValue  = _settings.shortcutsServices[3].GUID;
            txtButton4TextService.Text = _settings.shortcutsServices[3].ButtonText;
            txtServiceTooltip4.Text    = _settings.shortcutsServices[3].Help;

            cmbService5.DataSource     = l_services4;
            cmbService5.DisplayMember  = "Description";
            cmbService5.ValueMember    = "GUID";
            cmbService5.SelectedValue  = _settings.shortcutsServices[4].GUID;
            txtButton5TextService.Text = _settings.shortcutsServices[4].ButtonText;
            txtServiceTooltip5.Text    = _settings.shortcutsServices[4].Help;
            #endregion

            #region Global Shortcuts Service
            // Global Keys/Shortcuts
            cmbGlobalKey1Service.DataSource    = l_services11;
            cmbGlobalKey1Service.DisplayMember = "Description";
            cmbGlobalKey1Service.ValueMember   = "GUID";
            cmbGlobalKey1Service.SelectedValue = _settings.globalShortcutsService[0].GUID;
            //cmbGlobalKey1Service.Text = _settings.shortcutsServices[0].Help;


            cmbGlobalKey2Service.DataSource    = l_services12;
            cmbGlobalKey2Service.DisplayMember = "Description";
            cmbGlobalKey2Service.ValueMember   = "GUID";
            cmbGlobalKey2Service.SelectedValue = _settings.globalShortcutsService[1].GUID;
            //cmbGlobalKey2Service.Text = _settings.shortcutsServices[1].Help;

            cmbGlobalKey3Service.DataSource    = l_services13;
            cmbGlobalKey3Service.DisplayMember = "Description";
            cmbGlobalKey3Service.ValueMember   = "GUID";
            cmbGlobalKey3Service.SelectedValue = _settings.globalShortcutsService[2].GUID;
            //cmbGlobalKey3Service.Text = _settings.shortcutsServices[2].Help;


            cmbGlobalKey4Service.DataSource    = l_services14;
            cmbGlobalKey4Service.DisplayMember = "Description";
            cmbGlobalKey4Service.ValueMember   = "GUID";
            cmbGlobalKey4Service.SelectedValue = _settings.globalShortcutsService[3].GUID;
            //cmbGlobalKey4Service.Text = _settings.shortcutsServices[3].Help;


            cmbGlobalKey5Service.DataSource    = l_services15;
            cmbGlobalKey5Service.DisplayMember = "Description";
            cmbGlobalKey5Service.ValueMember   = "GUID";
            cmbGlobalKey5Service.SelectedValue = _settings.globalShortcutsService[4].GUID;
            //cmbGlobalKey5Service.Text = _settings.shortcutsServices[4].Help;

            cmbGlobalKey1Tooltip.Text = _settings.globalShortcutsService[0].Tooltip;
            cmbGlobalKey2Tooltip.Text = _settings.globalShortcutsService[1].Tooltip;
            cmbGlobalKey3Tooltip.Text = _settings.globalShortcutsService[2].Tooltip;
            cmbGlobalKey4Tooltip.Text = _settings.globalShortcutsService[3].Tooltip;
            cmbGlobalKey5Tooltip.Text = _settings.globalShortcutsService[4].Tooltip;

            Dictionary <string, Keys>      l_GlobalKeys      = GlobalKeysConfig.getKeys();
            Dictionary <string, Modifiers> l_GlobalModifiers = GlobalKeysConfig.getModifiers();

            // Hot key services
            cmbGlobalKeyService1Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService1Key.DisplayMember = "Key";
            cmbGlobalKeyService1Key.ValueMember   = "Key";

            cmbGlobalKeyService1Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService1Mod1.DisplayMember = "Key";
            cmbGlobalKeyService1Mod1.ValueMember   = "Key";

            cmbGlobalKeyService1Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService1Mod2.DisplayMember = "Key";
            cmbGlobalKeyService1Mod2.ValueMember   = "Key";

            cmbGlobalKeyService1Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService1Mod3.DisplayMember = "Key";
            cmbGlobalKeyService1Mod3.ValueMember   = "Key";

            cmbGlobalKeyService1Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService1Mod4.DisplayMember = "Key";
            cmbGlobalKeyService1Mod4.ValueMember   = "Key";

            cmbGlobalKeyService2Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService2Key.DisplayMember = "Key";
            cmbGlobalKeyService2Key.ValueMember   = "Key";

            cmbGlobalKeyService2Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService2Mod1.DisplayMember = "Key";
            cmbGlobalKeyService2Mod1.ValueMember   = "Key";

            cmbGlobalKeyService2Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService2Mod2.DisplayMember = "Key";
            cmbGlobalKeyService2Mod2.ValueMember   = "Key";

            cmbGlobalKeyService2Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService2Mod3.DisplayMember = "Key";
            cmbGlobalKeyService2Mod3.ValueMember   = "Key";

            cmbGlobalKeyService2Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService2Mod4.DisplayMember = "Key";
            cmbGlobalKeyService2Mod4.ValueMember   = "Key";

            cmbGlobalKeyService3Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService3Key.DisplayMember = "Key";
            cmbGlobalKeyService3Key.ValueMember   = "Key";

            cmbGlobalKeyService3Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService3Mod1.DisplayMember = "Key";
            cmbGlobalKeyService3Mod1.ValueMember   = "Key";

            cmbGlobalKeyService3Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService3Mod2.DisplayMember = "Key";
            cmbGlobalKeyService3Mod2.ValueMember   = "Key";

            cmbGlobalKeyService3Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService3Mod3.DisplayMember = "Key";
            cmbGlobalKeyService3Mod3.ValueMember   = "Key";

            cmbGlobalKeyService3Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService3Mod4.DisplayMember = "Key";
            cmbGlobalKeyService3Mod4.ValueMember   = "Key";

            cmbGlobalKeyService4Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService4Key.DisplayMember = "Key";
            cmbGlobalKeyService4Key.ValueMember   = "Key";

            cmbGlobalKeyService4Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService4Mod1.DisplayMember = "Key";
            cmbGlobalKeyService4Mod1.ValueMember   = "Key";

            cmbGlobalKeyService4Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService4Mod2.DisplayMember = "Key";
            cmbGlobalKeyService4Mod2.ValueMember   = "Key";

            cmbGlobalKeyService4Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService4Mod3.DisplayMember = "Key";
            cmbGlobalKeyService4Mod3.ValueMember   = "Key";

            cmbGlobalKeyService4Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService4Mod4.DisplayMember = "Key";
            cmbGlobalKeyService4Mod4.ValueMember   = "Key";

            cmbGlobalKeyService5Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService5Key.DisplayMember = "Key";
            cmbGlobalKeyService5Key.ValueMember   = "Key";

            cmbGlobalKeyService5Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService5Mod1.DisplayMember = "Key";
            cmbGlobalKeyService5Mod1.ValueMember   = "Key";

            cmbGlobalKeyService5Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService5Mod2.DisplayMember = "Key";
            cmbGlobalKeyService5Mod2.ValueMember   = "Key";

            cmbGlobalKeyService5Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService5Mod3.DisplayMember = "Key";
            cmbGlobalKeyService5Mod3.ValueMember   = "Key";

            cmbGlobalKeyService5Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService5Mod4.DisplayMember = "Key";
            cmbGlobalKeyService5Mod4.ValueMember   = "Key";

            cmbGlobalKeyService1Key.SelectedValue  = _settings.globalShortcutsService[0].Key;
            cmbGlobalKeyService1Mod1.SelectedValue = _settings.globalShortcutsService[0].Modifier1;
            cmbGlobalKeyService1Mod2.SelectedValue = _settings.globalShortcutsService[0].Modifier2;
            cmbGlobalKeyService1Mod3.SelectedValue = _settings.globalShortcutsService[0].Modifier3;
            cmbGlobalKeyService1Mod4.SelectedValue = _settings.globalShortcutsService[0].Modifier4;

            cmbGlobalKeyService2Key.SelectedValue  = _settings.globalShortcutsService[1].Key;
            cmbGlobalKeyService2Mod1.SelectedValue = _settings.globalShortcutsService[1].Modifier1;
            cmbGlobalKeyService2Mod2.SelectedValue = _settings.globalShortcutsService[1].Modifier2;
            cmbGlobalKeyService2Mod3.SelectedValue = _settings.globalShortcutsService[1].Modifier3;
            cmbGlobalKeyService2Mod4.SelectedValue = _settings.globalShortcutsService[1].Modifier4;

            cmbGlobalKeyService3Key.SelectedValue  = _settings.globalShortcutsService[2].Key;
            cmbGlobalKeyService3Mod1.SelectedValue = _settings.globalShortcutsService[2].Modifier1;
            cmbGlobalKeyService3Mod2.SelectedValue = _settings.globalShortcutsService[2].Modifier2;
            cmbGlobalKeyService3Mod3.SelectedValue = _settings.globalShortcutsService[2].Modifier3;
            cmbGlobalKeyService3Mod4.SelectedValue = _settings.globalShortcutsService[2].Modifier4;

            cmbGlobalKeyService4Key.SelectedValue  = _settings.globalShortcutsService[3].Key;
            cmbGlobalKeyService4Mod1.SelectedValue = _settings.globalShortcutsService[3].Modifier1;
            cmbGlobalKeyService4Mod2.SelectedValue = _settings.globalShortcutsService[3].Modifier2;
            cmbGlobalKeyService4Mod3.SelectedValue = _settings.globalShortcutsService[3].Modifier3;
            cmbGlobalKeyService4Mod4.SelectedValue = _settings.globalShortcutsService[3].Modifier4;

            cmbGlobalKeyService5Key.SelectedValue  = _settings.globalShortcutsService[4].Key;
            cmbGlobalKeyService5Mod1.SelectedValue = _settings.globalShortcutsService[4].Modifier1;
            cmbGlobalKeyService5Mod2.SelectedValue = _settings.globalShortcutsService[4].Modifier2;
            cmbGlobalKeyService5Mod3.SelectedValue = _settings.globalShortcutsService[4].Modifier3;
            cmbGlobalKeyService5Mod4.SelectedValue = _settings.globalShortcutsService[4].Modifier4;
            #endregion

            // Search
            #region Global Key Search
            // Search
            cmbGlobalKeySearch1Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch1Key.DisplayMember = "Key";
            cmbGlobalKeySearch1Key.ValueMember   = "Key";

            cmbGlobalKeySearch1Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch1Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch1Mod1.ValueMember   = "Key";

            cmbGlobalKeySearch1Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch1Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch1Mod2.ValueMember   = "Key";

            cmbGlobalKeySearch1Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch1Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch1Mod3.ValueMember   = "Key";

            cmbGlobalKeySearch1Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch1Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch1Mod4.ValueMember   = "Key";

            cmbGlobalKeySearch2Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch2Key.DisplayMember = "Key";
            cmbGlobalKeySearch2Key.ValueMember   = "Key";

            cmbGlobalKeySearch2Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch2Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch2Mod1.ValueMember   = "Key";

            cmbGlobalKeySearch2Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch2Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch2Mod2.ValueMember   = "Key";

            cmbGlobalKeySearch2Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch2Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch2Mod3.ValueMember   = "Key";

            cmbGlobalKeySearch2Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch2Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch2Mod4.ValueMember   = "Key";

            cmbGlobalKeySearch3Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch3Key.DisplayMember = "Key";
            cmbGlobalKeySearch3Key.ValueMember   = "Key";

            cmbGlobalKeySearch3Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch3Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch3Mod1.ValueMember   = "Key";

            cmbGlobalKeySearch3Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch3Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch3Mod2.ValueMember   = "Key";

            cmbGlobalKeySearch3Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch3Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch3Mod3.ValueMember   = "Key";

            cmbGlobalKeySearch3Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch3Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch3Mod4.ValueMember   = "Key";

            cmbGlobalKeySearch4Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch4Key.DisplayMember = "Key";
            cmbGlobalKeySearch4Key.ValueMember   = "Key";

            cmbGlobalKeySearch4Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch4Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch4Mod1.ValueMember   = "Key";

            cmbGlobalKeySearch4Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch4Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch4Mod2.ValueMember   = "Key";

            cmbGlobalKeySearch4Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch4Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch4Mod3.ValueMember   = "Key";

            cmbGlobalKeySearch4Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch4Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch4Mod4.ValueMember   = "Key";

            cmbGlobalKeySearch5Key.DataSource    = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch5Key.DisplayMember = "Key";
            cmbGlobalKeySearch5Key.ValueMember   = "Key";

            cmbGlobalKeySearch5Mod1.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch5Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch5Mod1.ValueMember   = "Key";

            cmbGlobalKeySearch5Mod2.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch5Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch5Mod2.ValueMember   = "Key";

            cmbGlobalKeySearch5Mod3.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch5Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch5Mod3.ValueMember   = "Key";

            cmbGlobalKeySearch5Mod4.DataSource    = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch5Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch5Mod4.ValueMember   = "Key";

            cmbGlobalKeySearch1Key.SelectedValue  = _settings.globalShortcutsSearch[0].Key;
            cmbGlobalKeySearch1Mod1.SelectedValue = _settings.globalShortcutsSearch[0].Modifier1;
            cmbGlobalKeySearch1Mod2.SelectedValue = _settings.globalShortcutsSearch[0].Modifier2;
            cmbGlobalKeySearch1Mod3.SelectedValue = _settings.globalShortcutsSearch[0].Modifier3;
            cmbGlobalKeySearch1Mod4.SelectedValue = _settings.globalShortcutsSearch[0].Modifier4;
            cmbGlobalKeySearch1SearchName.Text    = _settings.globalShortcutsSearch[0].SearchName;
            cmbGlobalKeySearch1SearchTerm.Text    = _settings.globalShortcutsSearch[0].SearchTerm;

            cmbGlobalKeySearch2Key.SelectedValue  = _settings.globalShortcutsSearch[1].Key;
            cmbGlobalKeySearch2Mod1.SelectedValue = _settings.globalShortcutsSearch[1].Modifier1;
            cmbGlobalKeySearch2Mod2.SelectedValue = _settings.globalShortcutsSearch[1].Modifier2;
            cmbGlobalKeySearch2Mod3.SelectedValue = _settings.globalShortcutsSearch[1].Modifier3;
            cmbGlobalKeySearch2Mod4.SelectedValue = _settings.globalShortcutsSearch[1].Modifier4;
            cmbGlobalKeySearch2SearchName.Text    = _settings.globalShortcutsSearch[1].SearchName;
            cmbGlobalKeySearch2SearchTerm.Text    = _settings.globalShortcutsSearch[1].SearchTerm;

            cmbGlobalKeySearch3Key.SelectedValue  = _settings.globalShortcutsSearch[2].Key;
            cmbGlobalKeySearch3Mod1.SelectedValue = _settings.globalShortcutsSearch[2].Modifier1;
            cmbGlobalKeySearch3Mod2.SelectedValue = _settings.globalShortcutsSearch[2].Modifier2;
            cmbGlobalKeySearch3Mod3.SelectedValue = _settings.globalShortcutsSearch[2].Modifier3;
            cmbGlobalKeySearch3Mod4.SelectedValue = _settings.globalShortcutsSearch[2].Modifier4;
            cmbGlobalKeySearch3SearchName.Text    = _settings.globalShortcutsSearch[2].SearchName;
            cmbGlobalKeySearch3SearchTerm.Text    = _settings.globalShortcutsSearch[2].SearchTerm;

            cmbGlobalKeySearch4Key.SelectedValue  = _settings.globalShortcutsSearch[3].Key;
            cmbGlobalKeySearch4Mod1.SelectedValue = _settings.globalShortcutsSearch[3].Modifier1;
            cmbGlobalKeySearch4Mod2.SelectedValue = _settings.globalShortcutsSearch[3].Modifier2;
            cmbGlobalKeySearch4Mod3.SelectedValue = _settings.globalShortcutsSearch[3].Modifier3;
            cmbGlobalKeySearch4Mod4.SelectedValue = _settings.globalShortcutsSearch[3].Modifier4;
            cmbGlobalKeySearch4SearchName.Text    = _settings.globalShortcutsSearch[3].SearchName;
            cmbGlobalKeySearch4SearchTerm.Text    = _settings.globalShortcutsSearch[3].SearchTerm;

            cmbGlobalKeySearch5Key.SelectedValue  = _settings.globalShortcutsSearch[4].Key;
            cmbGlobalKeySearch5Mod1.SelectedValue = _settings.globalShortcutsSearch[4].Modifier1;
            cmbGlobalKeySearch5Mod2.SelectedValue = _settings.globalShortcutsSearch[4].Modifier2;
            cmbGlobalKeySearch5Mod3.SelectedValue = _settings.globalShortcutsSearch[4].Modifier3;
            cmbGlobalKeySearch5Mod4.SelectedValue = _settings.globalShortcutsSearch[4].Modifier4;
            cmbGlobalKeySearch5SearchName.Text    = _settings.globalShortcutsSearch[4].SearchName;
            cmbGlobalKeySearch5SearchTerm.Text    = _settings.globalShortcutsSearch[4].SearchTerm;
            #endregion Global Key Search
        }
        public frmSettings(AddinSettings settings, AddinControl addinControl)
        {
            InitializeComponent();

            this._settings = settings;
            this._addinControl = addinControl;

           

            #region miscellaneous
            this.txtQuickSearch.Text = settings.quickSearchName;
            this.txtFileManagerPath.Text = settings.FileManagerPath;
            this.chkAdvancedFeatures.Checked = settings.isAdvancedFeatures;
            this.chkSvnSupport.Checked = settings.isSvnSupport;
            this.chkVcSupport.Checked = settings.isVcSupport;
            #endregion

            #region linestyle
            // linestyle
            string[] items = new string[]{"A Automatic","C Custom","D Direct","B Bezier",
                "LV Lateral Vertical","LH Lateral Horizental","no","OR Orthogonal Rounded",
                "OS Orthogonal Square","TH Tree Horizental","TV Tree Vertical"};
            string[] itemsActivity = new string[items.Length];
            items.CopyTo(itemsActivity, 0);

            string[] itemsStatechart = new string[items.Length];
            items.CopyTo(itemsStatechart, 0);

            string[] itemsCustom = new string[items.Length];
            items.CopyTo(itemsCustom, 0);

            string[] itemsClass = new string[items.Length];
            items.CopyTo(itemsClass, 0);

            string[] itemsComponent = new string[items.Length];
            items.CopyTo(itemsComponent, 0);

            string[] itemsUseCase = new string[items.Length];
            items.CopyTo(itemsUseCase, 0);

            string[] itemsPackage = new string[items.Length];
            items.CopyTo(itemsPackage, 0);

            string[] itemsDeployment = new string[items.Length];
            items.CopyTo(itemsDeployment, 0);

            string[] itemsCompositeStructure = new string[items.Length];
            items.CopyTo(itemsCompositeStructure, 0);



            this.cboActivityLineStyle.DataSource = itemsActivity;
            this.cboStatechartLineStyle.DataSource = itemsStatechart;
            this.cboClassLineStyle.DataSource = itemsClass; 
            this.cboComponentLineStyle.DataSource = itemsComponent;
            this.cboPackageLineStyle.DataSource = itemsPackage; 
            this.cboCustomLineStyle.DataSource = itemsCustom; 
            this.cboUseCaseLineStyle.DataSource = itemsUseCase; 
            this.cboDeploymentLineStyle.DataSource = itemsDeployment;
            this.cboCompositeStructureLineStyle.DataSource = itemsCompositeStructure; 

            this.cboActivityLineStyle.Text = settings.ActivityLineStyle;
            this.cboStatechartLineStyle.Text = settings.StatechartLineStyle;
            this.cboClassLineStyle.Text = settings.ClassLineStyle;
            this.cboComponentLineStyle.Text = settings.ComponentLineStyle;
            this.cboPackageLineStyle.Text = settings.PackageLineStyle;
            this.cboCustomLineStyle.Text = settings.CustomLineStyle;
            this.cboUseCaseLineStyle.Text = settings.UseCaseLineStyle;
            this.cboDeploymentLineStyle.Text = settings.DeploymentLineStyle;
            this.cboCompositeStructureLineStyle.Text = settings.CompositeStructureLineStyle;
            #endregion

            #region load shortcuts search
            EaAddinShortcutSearch sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[0];
            txtBtn1Text.Text = sh.keyText;
            txtBtn1SearchName.Text = sh.keySearchName;
            txtBtn1SearchTerm.Text = sh.keySearchTerm;
            txtBtn1SearchTooltip.Text = sh.keySearchTooltip;

            sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[1];
            txtBtn2Text.Text = sh.keyText;
            txtBtn2SearchName.Text = sh.keySearchName;
            txtBtn2SearchTerm.Text = sh.keySearchTerm;
            txtBtn2SearchTooltip.Text = sh.keySearchTooltip;

            sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[2];
            txtBtn3Text.Text = sh.keyText;
            txtBtn3SearchName.Text = sh.keySearchName;
            txtBtn3SearchTerm.Text = sh.keySearchTerm;
            txtBtn3SearchTooltip.Text = sh.keySearchTooltip;

            sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[3];
            txtBtn4Text.Text = sh.keyText;
            txtBtn4SearchName.Text = sh.keySearchName;
            txtBtn4SearchTerm.Text = sh.keySearchTerm;
            txtBtn4SearchTooltip.Text = sh.keySearchTooltip;

            sh = (EaAddinShortcutSearch)_settings.shortcutsSearch[4];
            txtBtn5Text.Text = sh.keyText;
            txtBtn5SearchName.Text = sh.keySearchName;
            txtBtn5SearchTerm.Text = sh.keySearchTerm;
            txtBtn5SearchTooltip.Text = sh.keySearchTooltip;
            #endregion

            #region set possible services
            List<EaServices.ServiceCall> l_services1 = new List<EaServices.ServiceCall>();
            List<EaServices.ServiceCall> l_services2 = new List<EaServices.ServiceCall>();
            List<EaServices.ServiceCall> l_services3 = new List<EaServices.ServiceCall>();
            List<EaServices.ServiceCall> l_services4 = new List<EaServices.ServiceCall>();
            List<EaServices.ServiceCall> l_services11 = new List<EaServices.ServiceCall>();
            List<EaServices.ServiceCall> l_services12 = new List<EaServices.ServiceCall>();
            List<EaServices.ServiceCall> l_services13 = new List<EaServices.ServiceCall>();
            List<EaServices.ServiceCall> l_services14 = new List<EaServices.ServiceCall>();
            List<EaServices.ServiceCall> l_services15 = new List<EaServices.ServiceCall>();


            foreach (EaServices.ServiceCall service in _settings.allServices)
            {
                l_services1.Add(service);
                l_services2.Add(service);
                l_services3.Add(service);
                l_services4.Add(service);
                l_services11.Add(service);
                l_services12.Add(service);
                l_services13.Add(service);
                l_services14.Add(service);
                l_services15.Add(service);
            }
            #endregion




            #region set services
            cmbService1.DataSource = _settings.allServices;
            cmbService1.DisplayMember = "Description";
            cmbService1.ValueMember = "GUID";
            cmbService1.SelectedValue = _settings.shortcutsServices[0].GUID;
            txtButton1TextService.Text = _settings.shortcutsServices[0].ButtonText;
            txtServiceTooltip1.Text = _settings.shortcutsServices[0].Help;


            cmbService2.DataSource = l_services1;
            cmbService2.DisplayMember = "Description";
            cmbService2.ValueMember = "GUID";
            cmbService2.SelectedValue = _settings.shortcutsServices[1].GUID;
            txtButton2TextService.Text = _settings.shortcutsServices[1].ButtonText;
            txtServiceTooltip2.Text = _settings.shortcutsServices[1].Help;

            cmbService3.DataSource = l_services2;
            cmbService3.DisplayMember = "Description";
            cmbService3.ValueMember = "GUID";
            cmbService3.SelectedValue = _settings.shortcutsServices[2].GUID;
            txtButton3TextService.Text = _settings.shortcutsServices[2].ButtonText;
            txtServiceTooltip3.Text = _settings.shortcutsServices[2].Help;


            cmbService4.DataSource = l_services3;
            cmbService4.DisplayMember = "Description";
            cmbService4.ValueMember = "GUID";
            cmbService4.SelectedValue = _settings.shortcutsServices[3].GUID;
            txtButton4TextService.Text = _settings.shortcutsServices[3].ButtonText;
            txtServiceTooltip4.Text = _settings.shortcutsServices[3].Help;

            cmbService5.DataSource = l_services4;
            cmbService5.DisplayMember = "Description";
            cmbService5.ValueMember = "GUID";
            cmbService5.SelectedValue = _settings.shortcutsServices[4].GUID;
            txtButton5TextService.Text = _settings.shortcutsServices[4].ButtonText;
            txtServiceTooltip5.Text = _settings.shortcutsServices[4].Help;
            #endregion

            #region Global Shortcuts Service
            // Global Keys/Shortcuts
            cmbGlobalKey1Service.DataSource = l_services11;
            cmbGlobalKey1Service.DisplayMember = "Description";
            cmbGlobalKey1Service.ValueMember = "GUID";
            cmbGlobalKey1Service.SelectedValue = _settings.globalShortcutsService[0].GUID;
            //cmbGlobalKey1Service.Text = _settings.shortcutsServices[0].Help;


            cmbGlobalKey2Service.DataSource = l_services12;
            cmbGlobalKey2Service.DisplayMember = "Description";
            cmbGlobalKey2Service.ValueMember = "GUID";
            cmbGlobalKey2Service.SelectedValue = _settings.globalShortcutsService[1].GUID;
            //cmbGlobalKey2Service.Text = _settings.shortcutsServices[1].Help;

            cmbGlobalKey3Service.DataSource = l_services13;
            cmbGlobalKey3Service.DisplayMember = "Description";
            cmbGlobalKey3Service.ValueMember = "GUID";
            cmbGlobalKey3Service.SelectedValue = _settings.globalShortcutsService[2].GUID;
            //cmbGlobalKey3Service.Text = _settings.shortcutsServices[2].Help;


            cmbGlobalKey4Service.DataSource = l_services14;
            cmbGlobalKey4Service.DisplayMember = "Description";
            cmbGlobalKey4Service.ValueMember = "GUID";
            cmbGlobalKey4Service.SelectedValue = _settings.globalShortcutsService[3].GUID;
            //cmbGlobalKey4Service.Text = _settings.shortcutsServices[3].Help;


            cmbGlobalKey5Service.DataSource = l_services15;
            cmbGlobalKey5Service.DisplayMember = "Description";
            cmbGlobalKey5Service.ValueMember = "GUID";
            cmbGlobalKey5Service.SelectedValue = _settings.globalShortcutsService[4].GUID;
            //cmbGlobalKey5Service.Text = _settings.shortcutsServices[4].Help;

            cmbGlobalKey1Tooltip.Text = _settings.globalShortcutsService[0].Tooltip;
            cmbGlobalKey2Tooltip.Text = _settings.globalShortcutsService[1].Tooltip;
            cmbGlobalKey3Tooltip.Text = _settings.globalShortcutsService[2].Tooltip;
            cmbGlobalKey4Tooltip.Text = _settings.globalShortcutsService[3].Tooltip;
            cmbGlobalKey5Tooltip.Text = _settings.globalShortcutsService[4].Tooltip;

            Dictionary<string, Keys> l_GlobalKeys = GlobalKeysConfig.getKeys();
            Dictionary<string, Modifiers> l_GlobalModifiers = GlobalKeysConfig.getModifiers();

            // Hot key services
            cmbGlobalKeyService1Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService1Key.DisplayMember = "Key";
            cmbGlobalKeyService1Key.ValueMember = "Key";

            cmbGlobalKeyService1Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService1Mod1.DisplayMember = "Key";
            cmbGlobalKeyService1Mod1.ValueMember = "Key";

            cmbGlobalKeyService1Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService1Mod2.DisplayMember = "Key";
            cmbGlobalKeyService1Mod2.ValueMember = "Key";

            cmbGlobalKeyService1Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService1Mod3.DisplayMember = "Key";
            cmbGlobalKeyService1Mod3.ValueMember = "Key";

            cmbGlobalKeyService1Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService1Mod4.DisplayMember = "Key";
            cmbGlobalKeyService1Mod4.ValueMember = "Key";

            cmbGlobalKeyService2Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService2Key.DisplayMember = "Key";
            cmbGlobalKeyService2Key.ValueMember = "Key";

            cmbGlobalKeyService2Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService2Mod1.DisplayMember = "Key";
            cmbGlobalKeyService2Mod1.ValueMember = "Key";

            cmbGlobalKeyService2Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService2Mod2.DisplayMember = "Key";
            cmbGlobalKeyService2Mod2.ValueMember = "Key";

            cmbGlobalKeyService2Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService2Mod3.DisplayMember = "Key";
            cmbGlobalKeyService2Mod3.ValueMember = "Key";

            cmbGlobalKeyService2Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService2Mod4.DisplayMember = "Key";
            cmbGlobalKeyService2Mod4.ValueMember = "Key";

            cmbGlobalKeyService3Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService3Key.DisplayMember = "Key";
            cmbGlobalKeyService3Key.ValueMember = "Key";

            cmbGlobalKeyService3Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService3Mod1.DisplayMember = "Key";
            cmbGlobalKeyService3Mod1.ValueMember = "Key";

            cmbGlobalKeyService3Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService3Mod2.DisplayMember = "Key";
            cmbGlobalKeyService3Mod2.ValueMember = "Key";

            cmbGlobalKeyService3Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService3Mod3.DisplayMember = "Key";
            cmbGlobalKeyService3Mod3.ValueMember = "Key";

            cmbGlobalKeyService3Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService3Mod4.DisplayMember = "Key";
            cmbGlobalKeyService3Mod4.ValueMember = "Key";

            cmbGlobalKeyService4Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService4Key.DisplayMember = "Key";
            cmbGlobalKeyService4Key.ValueMember = "Key";

            cmbGlobalKeyService4Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService4Mod1.DisplayMember = "Key";
            cmbGlobalKeyService4Mod1.ValueMember = "Key";

            cmbGlobalKeyService4Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService4Mod2.DisplayMember = "Key";
            cmbGlobalKeyService4Mod2.ValueMember = "Key";

            cmbGlobalKeyService4Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService4Mod3.DisplayMember = "Key";
            cmbGlobalKeyService4Mod3.ValueMember = "Key";

            cmbGlobalKeyService4Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService4Mod4.DisplayMember = "Key";
            cmbGlobalKeyService4Mod4.ValueMember = "Key";

            cmbGlobalKeyService5Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeyService5Key.DisplayMember = "Key";
            cmbGlobalKeyService5Key.ValueMember = "Key";

            cmbGlobalKeyService5Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService5Mod1.DisplayMember = "Key";
            cmbGlobalKeyService5Mod1.ValueMember = "Key";

            cmbGlobalKeyService5Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService5Mod2.DisplayMember = "Key";
            cmbGlobalKeyService5Mod2.ValueMember = "Key";

            cmbGlobalKeyService5Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService5Mod3.DisplayMember = "Key";
            cmbGlobalKeyService5Mod3.ValueMember = "Key";

            cmbGlobalKeyService5Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeyService5Mod4.DisplayMember = "Key";
            cmbGlobalKeyService5Mod4.ValueMember = "Key";

            cmbGlobalKeyService1Key.SelectedValue = _settings.globalShortcutsService[0].Key;
            cmbGlobalKeyService1Mod1.SelectedValue = _settings.globalShortcutsService[0].Modifier1;
            cmbGlobalKeyService1Mod2.SelectedValue = _settings.globalShortcutsService[0].Modifier2;
            cmbGlobalKeyService1Mod3.SelectedValue = _settings.globalShortcutsService[0].Modifier3;
            cmbGlobalKeyService1Mod4.SelectedValue = _settings.globalShortcutsService[0].Modifier4;

            cmbGlobalKeyService2Key.SelectedValue = _settings.globalShortcutsService[1].Key;
            cmbGlobalKeyService2Mod1.SelectedValue = _settings.globalShortcutsService[1].Modifier1;
            cmbGlobalKeyService2Mod2.SelectedValue = _settings.globalShortcutsService[1].Modifier2;
            cmbGlobalKeyService2Mod3.SelectedValue = _settings.globalShortcutsService[1].Modifier3;
            cmbGlobalKeyService2Mod4.SelectedValue = _settings.globalShortcutsService[1].Modifier4;

            cmbGlobalKeyService3Key.SelectedValue = _settings.globalShortcutsService[2].Key;
            cmbGlobalKeyService3Mod1.SelectedValue = _settings.globalShortcutsService[2].Modifier1;
            cmbGlobalKeyService3Mod2.SelectedValue = _settings.globalShortcutsService[2].Modifier2;
            cmbGlobalKeyService3Mod3.SelectedValue = _settings.globalShortcutsService[2].Modifier3;
            cmbGlobalKeyService3Mod4.SelectedValue = _settings.globalShortcutsService[2].Modifier4;

            cmbGlobalKeyService4Key.SelectedValue = _settings.globalShortcutsService[3].Key;
            cmbGlobalKeyService4Mod1.SelectedValue = _settings.globalShortcutsService[3].Modifier1;
            cmbGlobalKeyService4Mod2.SelectedValue = _settings.globalShortcutsService[3].Modifier2;
            cmbGlobalKeyService4Mod3.SelectedValue = _settings.globalShortcutsService[3].Modifier3;
            cmbGlobalKeyService4Mod4.SelectedValue = _settings.globalShortcutsService[3].Modifier4;

            cmbGlobalKeyService5Key.SelectedValue = _settings.globalShortcutsService[4].Key;
            cmbGlobalKeyService5Mod1.SelectedValue = _settings.globalShortcutsService[4].Modifier1;
            cmbGlobalKeyService5Mod2.SelectedValue = _settings.globalShortcutsService[4].Modifier2;
            cmbGlobalKeyService5Mod3.SelectedValue = _settings.globalShortcutsService[4].Modifier3;
            cmbGlobalKeyService5Mod4.SelectedValue = _settings.globalShortcutsService[4].Modifier4;
            #endregion

            // Search
            #region Global Key Search
            // Search
            cmbGlobalKeySearch1Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch1Key.DisplayMember = "Key";
            cmbGlobalKeySearch1Key.ValueMember = "Key";

            cmbGlobalKeySearch1Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch1Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch1Mod1.ValueMember = "Key";

            cmbGlobalKeySearch1Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch1Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch1Mod2.ValueMember = "Key";

            cmbGlobalKeySearch1Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch1Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch1Mod3.ValueMember = "Key";

            cmbGlobalKeySearch1Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch1Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch1Mod4.ValueMember = "Key";

            cmbGlobalKeySearch2Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch2Key.DisplayMember = "Key";
            cmbGlobalKeySearch2Key.ValueMember = "Key";

            cmbGlobalKeySearch2Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch2Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch2Mod1.ValueMember = "Key";

            cmbGlobalKeySearch2Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch2Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch2Mod2.ValueMember = "Key";

            cmbGlobalKeySearch2Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch2Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch2Mod3.ValueMember = "Key";

            cmbGlobalKeySearch2Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch2Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch2Mod4.ValueMember = "Key";

            cmbGlobalKeySearch3Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch3Key.DisplayMember = "Key";
            cmbGlobalKeySearch3Key.ValueMember = "Key";

            cmbGlobalKeySearch3Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch3Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch3Mod1.ValueMember = "Key";

            cmbGlobalKeySearch3Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch3Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch3Mod2.ValueMember = "Key";

            cmbGlobalKeySearch3Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch3Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch3Mod3.ValueMember = "Key";

            cmbGlobalKeySearch3Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch3Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch3Mod4.ValueMember = "Key";

            cmbGlobalKeySearch4Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch4Key.DisplayMember = "Key";
            cmbGlobalKeySearch4Key.ValueMember = "Key";

            cmbGlobalKeySearch4Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch4Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch4Mod1.ValueMember = "Key";

            cmbGlobalKeySearch4Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch4Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch4Mod2.ValueMember = "Key";

            cmbGlobalKeySearch4Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch4Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch4Mod3.ValueMember = "Key";

            cmbGlobalKeySearch4Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch4Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch4Mod4.ValueMember = "Key";

            cmbGlobalKeySearch5Key.DataSource = new BindingSource(l_GlobalKeys, null);
            cmbGlobalKeySearch5Key.DisplayMember = "Key";
            cmbGlobalKeySearch5Key.ValueMember = "Key";

            cmbGlobalKeySearch5Mod1.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch5Mod1.DisplayMember = "Key";
            cmbGlobalKeySearch5Mod1.ValueMember = "Key";

            cmbGlobalKeySearch5Mod2.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch5Mod2.DisplayMember = "Key";
            cmbGlobalKeySearch5Mod2.ValueMember = "Key";

            cmbGlobalKeySearch5Mod3.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch5Mod3.DisplayMember = "Key";
            cmbGlobalKeySearch5Mod3.ValueMember = "Key";

            cmbGlobalKeySearch5Mod4.DataSource = new BindingSource(l_GlobalModifiers, null);
            cmbGlobalKeySearch5Mod4.DisplayMember = "Key";
            cmbGlobalKeySearch5Mod4.ValueMember = "Key";

            cmbGlobalKeySearch1Key.SelectedValue = _settings.globalShortcutsSearch[0].Key;
            cmbGlobalKeySearch1Mod1.SelectedValue = _settings.globalShortcutsSearch[0].Modifier1;
            cmbGlobalKeySearch1Mod2.SelectedValue = _settings.globalShortcutsSearch[0].Modifier2;
            cmbGlobalKeySearch1Mod3.SelectedValue = _settings.globalShortcutsSearch[0].Modifier3;
            cmbGlobalKeySearch1Mod4.SelectedValue = _settings.globalShortcutsSearch[0].Modifier4;
            cmbGlobalKeySearch1SearchName.Text = _settings.globalShortcutsSearch[0].SearchName;
            cmbGlobalKeySearch1SearchTerm.Text = _settings.globalShortcutsSearch[0].SearchTerm;

            cmbGlobalKeySearch2Key.SelectedValue = _settings.globalShortcutsSearch[1].Key;
            cmbGlobalKeySearch2Mod1.SelectedValue = _settings.globalShortcutsSearch[1].Modifier1;
            cmbGlobalKeySearch2Mod2.SelectedValue = _settings.globalShortcutsSearch[1].Modifier2;
            cmbGlobalKeySearch2Mod3.SelectedValue = _settings.globalShortcutsSearch[1].Modifier3;
            cmbGlobalKeySearch2Mod4.SelectedValue = _settings.globalShortcutsSearch[1].Modifier4;
            cmbGlobalKeySearch2SearchName.Text = _settings.globalShortcutsSearch[1].SearchName;
            cmbGlobalKeySearch2SearchTerm.Text = _settings.globalShortcutsSearch[1].SearchTerm;

            cmbGlobalKeySearch3Key.SelectedValue = _settings.globalShortcutsSearch[2].Key;
            cmbGlobalKeySearch3Mod1.SelectedValue = _settings.globalShortcutsSearch[2].Modifier1;
            cmbGlobalKeySearch3Mod2.SelectedValue = _settings.globalShortcutsSearch[2].Modifier2;
            cmbGlobalKeySearch3Mod3.SelectedValue = _settings.globalShortcutsSearch[2].Modifier3;
            cmbGlobalKeySearch3Mod4.SelectedValue = _settings.globalShortcutsSearch[2].Modifier4;
            cmbGlobalKeySearch3SearchName.Text = _settings.globalShortcutsSearch[2].SearchName;
            cmbGlobalKeySearch3SearchTerm.Text = _settings.globalShortcutsSearch[2].SearchTerm;

            cmbGlobalKeySearch4Key.SelectedValue = _settings.globalShortcutsSearch[3].Key;
            cmbGlobalKeySearch4Mod1.SelectedValue = _settings.globalShortcutsSearch[3].Modifier1;
            cmbGlobalKeySearch4Mod2.SelectedValue = _settings.globalShortcutsSearch[3].Modifier2;
            cmbGlobalKeySearch4Mod3.SelectedValue = _settings.globalShortcutsSearch[3].Modifier3;
            cmbGlobalKeySearch4Mod4.SelectedValue = _settings.globalShortcutsSearch[3].Modifier4;
            cmbGlobalKeySearch4SearchName.Text = _settings.globalShortcutsSearch[3].SearchName;
            cmbGlobalKeySearch4SearchTerm.Text = _settings.globalShortcutsSearch[3].SearchTerm;

            cmbGlobalKeySearch5Key.SelectedValue = _settings.globalShortcutsSearch[4].Key;
            cmbGlobalKeySearch5Mod1.SelectedValue = _settings.globalShortcutsSearch[4].Modifier1;
            cmbGlobalKeySearch5Mod2.SelectedValue = _settings.globalShortcutsSearch[4].Modifier2;
            cmbGlobalKeySearch5Mod3.SelectedValue = _settings.globalShortcutsSearch[4].Modifier3;
            cmbGlobalKeySearch5Mod4.SelectedValue = _settings.globalShortcutsSearch[4].Modifier4;
            cmbGlobalKeySearch5SearchName.Text = _settings.globalShortcutsSearch[4].SearchName;
            cmbGlobalKeySearch5SearchTerm.Text = _settings.globalShortcutsSearch[4].SearchTerm;
            #endregion Global Key Search


        }