Example #1
0
        /// <summary>
        /// Performs adjusting.
        /// </summary>
        private void Adjust()
        {
            try
            {
                SaveSettings();

                ProjectAdapter adapter = new ProjectAdapter();
                adapter.Adjust(ApplicationObject, Settings.Default.BaseReferencePaths);
            }
            catch (Exception e)
            {
                Messages.ShowWarning(this, e.Message);
                return;
            }

            Messages.ShowInformation(this, Resources.AdjustDone);
        }
Example #2
0
        /// <summary>
        /// Reloads latest version of references.
        /// </summary>
        private void DownloadLatestReferences()
        {
            try
            {
                SaveSettings();

                ProjectAdapter adapter = new ProjectAdapter();
                adapter.DownloadLatestReferences(
                    ApplicationObject,
                    Settings.Default.InternalReferencesSourcePath,
                    Settings.Default.ExternalReferencesSourcePath,
                    Settings.Default.InternalReferencesTargetPath,
                    Settings.Default.ExternalReferencesTargetPath);
            }
            catch (Exception e)
            {
                Messages.ShowWarning(this, e.Message);
                return;
            }

            Messages.ShowInformation(this, Resources.AdjustDone);
        }