1
0
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:
chylex 2015-05-17 00:53:43 +02:00
parent 1fb8c1c8ed
commit 69c0ffec8b
16 changed files with 25 additions and 25 deletions

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,6 @@
using BackupEssentials.Sys;
using BackupEssentials.Utils;
using BackupEssentials.Utils.Collections;
using System;
using System.Globalization;

View File

@ -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{

View File

@ -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">

View File

@ -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;

View File

@ -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;

View File

@ -1,4 +1,4 @@
using BackupEssentials.Utils;
using BackupEssentials.Utils.IO;
using System;
using System.Collections.Generic;
using System.IO;

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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 {

View File

@ -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();

View File

@ -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;

View File

@ -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;

View File

@ -1,6 +1,6 @@
using System.Text;
namespace BackupEssentials.Utils{
namespace BackupEssentials.Utils.IO{
static class WindowsFileUtils{
private static readonly string InvalidChars = @"<>:/\|?*"+'"';