mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2025-08-04 15:59:07 +02:00
Reorganized and cleaned up Utils namespace
This commit is contained in:
parent
1fb8c1c8ed
commit
69c0ffec8b
BackupEssentials
@ -1,7 +1,6 @@
|
||||
using BackupEssentials.Sys;
|
||||
using BackupEssentials.Utils;
|
||||
using BackupEssentials.Utils.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows;
|
||||
|
@ -1,6 +1,6 @@
|
||||
using BackupEssentials.Backup.IO;
|
||||
using BackupEssentials.Sys;
|
||||
using BackupEssentials.Utils;
|
||||
using BackupEssentials.Utils.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
@ -1,5 +1,6 @@
|
||||
using BackupEssentials.Sys;
|
||||
using BackupEssentials.Utils;
|
||||
using BackupEssentials.Utils.Collections;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
|
@ -1,13 +1,11 @@
|
||||
using BackupEssentials.Backup.Data;
|
||||
using BackupEssentials.Sys;
|
||||
using BackupEssentials.Utils;
|
||||
using BackupEssentials.Utils.IO;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BackupEssentials.Backup.History{
|
||||
class HistoryGenerator{
|
||||
|
@ -140,17 +140,17 @@
|
||||
<DependentUpon>TestingWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Sys\UI\DateFormat.cs" />
|
||||
<Compile Include="Utils\FileLock.cs" />
|
||||
<Compile Include="Utils\FileUtils.cs" />
|
||||
<Compile Include="Utils\KeyEqualityComparer.cs" />
|
||||
<Compile Include="Utils\IO\FileLock.cs" />
|
||||
<Compile Include="Utils\IO\FileUtils.cs" />
|
||||
<Compile Include="Utils\Collections\KeyEqualityComparer.cs" />
|
||||
<Compile Include="Utils\NativeMethods.cs" />
|
||||
<Compile Include="Utils\NumberSerialization.cs" />
|
||||
<Compile Include="Utils\ObservableDictionary.cs" />
|
||||
<Compile Include="Utils\SafeDictionary.cs" />
|
||||
<Compile Include="Utils\StringDictionarySerializer.cs" />
|
||||
<Compile Include="Utils\Collections\ObservableDictionary.cs" />
|
||||
<Compile Include="Utils\Collections\SafeDictionary.cs" />
|
||||
<Compile Include="Utils\Collections\StringDictionarySerializer.cs" />
|
||||
<Compile Include="Utils\ProgramArgsParser.cs" />
|
||||
<Compile Include="Utils\ScheduledUpdate.cs" />
|
||||
<Compile Include="Utils\WindowsFileUtils.cs" />
|
||||
<Compile Include="Utils\IO\WindowsFileUtils.cs" />
|
||||
<Compile Include="Utils\WindowsVersion.cs" />
|
||||
<Compile Include="Utils\WpfExtensions.cs" />
|
||||
<Page Include="BackupReportWindow.xaml">
|
||||
|
@ -1,12 +1,10 @@
|
||||
using BackupEssentials.Backup;
|
||||
using BackupEssentials.Backup.History;
|
||||
using BackupEssentials.Sys;
|
||||
using BackupEssentials.Utils;
|
||||
using BackupEssentials.Utils.IO;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Threading;
|
||||
|
@ -1,6 +1,8 @@
|
||||
using BackupEssentials.Backup.History;
|
||||
using BackupEssentials.Sys;
|
||||
using BackupEssentials.Utils;
|
||||
using BackupEssentials.Utils.Collections;
|
||||
using BackupEssentials.Utils.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
@ -1,4 +1,4 @@
|
||||
using BackupEssentials.Utils;
|
||||
using BackupEssentials.Utils.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
@ -1,6 +1,8 @@
|
||||
using BackupEssentials.Data;
|
||||
using BackupEssentials.Sys.UI;
|
||||
using BackupEssentials.Utils;
|
||||
using BackupEssentials.Utils.Collections;
|
||||
using BackupEssentials.Utils.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.IO;
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BackupEssentials.Utils{
|
||||
namespace BackupEssentials.Utils.Collections{
|
||||
class KeyEqualityComparer<K,V> : IEqualityComparer<KeyValuePair<K,V>>{
|
||||
bool IEqualityComparer<KeyValuePair<K,V>>.Equals(KeyValuePair<K,V> kvp1, KeyValuePair<K,V> kvp2){
|
||||
return kvp1.Key.Equals(kvp2.Key);
|
@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace BackupEssentials.Utils{
|
||||
namespace BackupEssentials.Utils.Collections{
|
||||
class ObservableDictionary<TKey,TValue> : Dictionary<TKey,TValue>, INotifyPropertyChanged{
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
public bool PauseObservation = false;
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BackupEssentials.Utils{
|
||||
namespace BackupEssentials.Utils.Collections{
|
||||
class SafeDictionary<K,V> : Dictionary<K,V>{
|
||||
public new V this[K key]{
|
||||
get {
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BackupEssentials.Utils{
|
||||
namespace BackupEssentials.Utils.Collections{
|
||||
static class StringDictionarySerializer{
|
||||
public static string ToString(Dictionary<string,string> dict){
|
||||
StringBuilder build = new StringBuilder();
|
@ -1,7 +1,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
namespace BackupEssentials.Utils{
|
||||
namespace BackupEssentials.Utils.IO{
|
||||
class FileLock{
|
||||
private static readonly int processID = Process.GetCurrentProcess().Id;
|
||||
|
@ -4,7 +4,7 @@ using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Text;
|
||||
|
||||
namespace BackupEssentials.Utils{
|
||||
namespace BackupEssentials.Utils.IO{
|
||||
static class FileUtils{
|
||||
public static bool ReadFile(string filename, FileMode mode, Action<string> lineAction){
|
||||
if (!File.Exists(filename))return false;
|
@ -1,6 +1,6 @@
|
||||
using System.Text;
|
||||
|
||||
namespace BackupEssentials.Utils{
|
||||
namespace BackupEssentials.Utils.IO{
|
||||
static class WindowsFileUtils{
|
||||
private static readonly string InvalidChars = @"<>:/\|?*"+'"';
|
||||
|
Loading…
Reference in New Issue
Block a user