public CopyManager(Action <string> showErrorAction) { if (showErrorAction == null) { throw new ArgumentNullException(nameof(showErrorAction)); } this.showErrorAction = showErrorAction; mSettings = new ProjectCopierSettings(); }
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); }
public CopyManager() { mSettings = new ProjectCopierSettings(); }
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; }