Ejemplo n.º 1
0
        /// <summary>
        /// Get installed version for Studio5(Studio 2017). Always use Studio5 because the loaded dll's contains needed logic.
        /// The call studio.GetStudioVersion() is not working when using the installer, because the app is running outside the Studio context,
        /// so the workaround is to get all the installed studio versions and use the needed one (Studio5)
        /// </summary>
        /// <returns></returns>
        private static StudioVersion GetInstalledStudioVersion()
        {
            var studio            = new Studio();
            var allStudioVersions = studio.GetInstalledStudioVersion();

            return(allStudioVersions.Where(v => v.Version.Equals("Studio5")).FirstOrDefault());
        }
Ejemplo n.º 2
0
        private void HighDPIChange_Load(object sender, EventArgs e)
        {
            Load -= HighDPIChange_Load;

            var tradosStudio = new Studio();

            _installedStudioVersions = tradosStudio.GetInstalledStudioVersion();

            var multiTerm = new MultiTerm();

            _installedMultiTermVersions = multiTerm.GetInstalledMultiTermVersion();

            olvColumnAction.AspectGetter = Getter;

            objectListView.SetObjects(_installedStudioVersions);
            objectListView.AddObjects(_installedMultiTermVersions);

            objectListView.ButtonClick += ObjectListView_ButtonClick;
        }