private void btnManageAreas_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.Areas != null) { ManageAreasForm frm = new ManageAreasForm(formRegions.MainRegion); frm.ShowDialog(); } }
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ManageAreasForm form = new ManageAreasForm(m_region); form.ShowDialog(this); tvAreas.Nodes.Clear(); tvAreas.Nodes.AddRange(m_region.Areas.CloneNodes()); if (!string.IsNullOrEmpty(m_position.PositionAreas)) { string[] areas = m_position.PositionAreas.Split(','); foreach (string area in areas) { GetNodesPath(tvAreas.Nodes, area); } } }