private void button1_Click(object sender, RibbonControlEventArgs e)
        {
            WindowFormRegionCollection formRegions =
                Globals.FormRegions
                [Globals.ThisAddIn.Application.ActiveExplorer()];

            if (!ServiceHelper.IsLoggedIn)
            {
                using (LoginForm frmLogin = new LoginForm())
                {
                    frmLogin.ShowDialog();
                    return;
                }
            }

            if (formRegions.MainRegion.IsRoleWorkerBusy || formRegions.MainRegion.IsCandidatesWorkerBusy)
            {
                return;
            }

            if (formRegions.MainRegion.Companies != null)
            {
                ManageCompaniesForm frm = new ManageCompaniesForm(formRegions.MainRegion);
                frm.ShowDialog();
            }
        }
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ManageCompaniesForm form = new ManageCompaniesForm(m_region, cbCompany.Text);

            form.ShowDialog(this);

            cbCompany.Items.Clear();
            cbCompany.Items.AddRange(m_region.Companies.Select(t => t.Attribute("title").Value).ToArray());
        }