internal void SaveRecentFilesList() { if (StoragePropertyName == "") { SettingSaveRequested?.Invoke(this, new StringEventArgs() { StringValue = GetAsString() }); } else { MainWindow.VM.Settings.SetValue(StoragePropertyName, GetAsString()); } }
internal void LoadRecentPathsFromString(string paths) { if (!MainWindow.ApplyWithoutSetting) { if (StoragePropertyName != "") { MainWindow.VM.Settings.SetValue(StoragePropertyName, paths); } else { SettingSaveRequested?.Invoke(this, new StringEventArgs() { StringValue = paths }); } } RecentPaths = paths.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries).ToList(); }