Example #1
0
        public CopyManager(Action <string> showErrorAction)
        {
            if (showErrorAction == null)
            {
                throw new ArgumentNullException(nameof(showErrorAction));
            }

            this.showErrorAction = showErrorAction;
            mSettings            = new ProjectCopierSettings();
        }
Example #2
0
        internal bool TryLoadOrCreateSettings()
        {
            bool succeeded = false;

            string fileToLoad = CopySettingsLocation;

            if (System.IO.File.Exists(fileToLoad))
            {
                try
                {
                    mSettings = FileManager.XmlDeserialize <ProjectCopierSettings>(fileToLoad);
                    succeeded = true;
                }
                catch (Exception e)
                {
                    PluginManager.ReceiveError(e.ToString());
                }
            }
            else
            {
                mSettings = new ProjectCopierSettings();
            }
            return(succeeded);
        }
Example #3
0
 public CopyManager()
 {
     mSettings = new ProjectCopierSettings();
 }
Example #4
0
        internal bool TryLoadOrCreateSettings()
        {
            bool succeeded = false;

            string fileToLoad = CopySettingsLocation;

            if (System.IO.File.Exists(fileToLoad))
            {
                try
                {
                    mSettings = FileManager.XmlDeserialize<ProjectCopierSettings>(fileToLoad);
                    succeeded = true;
                }
                catch(Exception e)
                {
                    PluginManager.ReceiveError(e.ToString());
                }
            }
            else
            {
                mSettings = new ProjectCopierSettings();
            }
            return succeeded;
        }