/// <summary> /// Method gets projects path selected by user, /// or default path, if nothing selected. /// </summary> /// <param name="settings">Settings.</param> private string _GetProjectsPath(Settings settings) { Debug.Assert(settings != null); string resultPath = string.Empty; if (!string.IsNullOrEmpty(settings.UsersProjectsFolder)) { resultPath = settings.UsersProjectsFolder; } else { resultPath = App.Current.ProjectCatalog.FolderPath; } return resultPath; }
/// <summary> /// Method gets plug-ins path selected by user, /// or default path, if nothing selected. /// </summary> /// <param name="settings">Settings.</param> private string _GetPlugInsPath(Settings settings) { Debug.Assert(settings != null); string resultPath = string.Empty; if (!string.IsNullOrEmpty(settings.UsersPlugInsFolder)) resultPath = settings.UsersPlugInsFolder; else resultPath = AppDomain.CurrentDomain.BaseDirectory; return resultPath; }