public void Execute() { InSourceViewController contentConnector = SdlTradosStudio.Application.GetController <InSourceViewController>(); var persistence = new Persistence(); persistence.IsStructureChanged(); contentConnector.CheckForProjects(); // TelemetryService.Instance.Init(); contentConnector.Activate(); }
public void Execute() { InSourceViewController contentConnector = SdlTradosStudio.Application.GetController <InSourceViewController>(); contentConnector.CheckForProjects(); TelemetryService.Instance.Init(); if (contentConnector.ProjectRequests.Count > 0) { if (MessageBox.Show( Form.ActiveForm, @"You have new project requests. Would you like to check the project requests now?", @"New Project Requests", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { contentConnector.Activate(); } } }