瀏覽代碼

Perform source code cleanup

Snoopy 4 年之前
父節點
當前提交
321ba8d077
共有 11 個文件被更改,包括 11 次插入97 次删除
  1. 1 6
      App.xaml.cs
  2. 2 12
      AuthenticationUC.xaml.cs
  3. 0 8
      BuildIco.xaml.cs
  4. 1 8
      ImageList.cs
  5. 2 13
      InitialIdleUC.xaml.cs
  6. 1 11
      MainWindow.xaml.cs
  7. 2 12
      MaintenanceUC.xaml.cs
  8. 0 9
      ModifyIco.xaml.cs
  9. 2 12
      PlugChargingUC.xaml.cs
  10. 0 2
      Properties/AssemblyInfo.cs
  11. 0 4
      Utility.cs

+ 1 - 6
App.xaml.cs

@@ -1,10 +1,5 @@
 using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
 using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
 using System.Windows;
 
 namespace Phihong_EVSE_UI_Tool
@@ -19,7 +14,7 @@ namespace Phihong_EVSE_UI_Tool
             base.OnStartup(e);
 
             Directory.CreateDirectory(Environment.CurrentDirectory + @"\Output");
-            
+
             DirectoryInfo di = Directory.CreateDirectory(Environment.CurrentDirectory + @"\CustomTemp");
             di.Attributes = FileAttributes.Directory | FileAttributes.Hidden;
         }

+ 2 - 12
AuthenticationUC.xaml.cs

@@ -1,19 +1,9 @@
-using System;
-using System.Collections.Generic;
+using Microsoft.WindowsAPICodePack.Dialogs;
+using System;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
 using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using Microsoft.WindowsAPICodePack.Dialogs;
 
 namespace Phihong_EVSE_UI_Tool
 {

+ 0 - 8
BuildIco.xaml.cs

@@ -1,20 +1,12 @@
 using Microsoft.WindowsAPICodePack.Dialogs;
 using System;
 using System.Collections.Generic;
-using System.ComponentModel;
 using System.IO;
 using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
 using System.Windows.Media;
 using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
 
 namespace Phihong_EVSE_UI_Tool
 {

+ 1 - 8
ImageList.cs

@@ -1,11 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Media;
-
-namespace Phihong_EVSE_UI_Tool
+namespace Phihong_EVSE_UI_Tool
 {
     public class ImageList
     {

+ 2 - 13
InitialIdleUC.xaml.cs

@@ -1,20 +1,9 @@
-using System;
-using System.Collections.Generic;
+using Microsoft.WindowsAPICodePack.Dialogs;
+using System;
 using System.IO;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
 using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using Microsoft.WindowsAPICodePack.Dialogs;
 
 namespace Phihong_EVSE_UI_Tool
 {

+ 1 - 11
MainWindow.xaml.cs

@@ -1,19 +1,9 @@
-using System;
-using System.Collections.Generic;
+using SourceChord.FluentWPF;
 using System.Linq;
-using System.Linq.Expressions;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
 using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using SourceChord.FluentWPF;
 
 namespace Phihong_EVSE_UI_Tool
 {

+ 2 - 12
MaintenanceUC.xaml.cs

@@ -1,19 +1,9 @@
-using System;
-using System.Collections.Generic;
+using Microsoft.WindowsAPICodePack.Dialogs;
+using System;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
 using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using Microsoft.WindowsAPICodePack.Dialogs;
 
 namespace Phihong_EVSE_UI_Tool
 {

+ 0 - 9
ModifyIco.xaml.cs

@@ -1,19 +1,10 @@
 using Microsoft.WindowsAPICodePack.Dialogs;
 using System;
-using System.Collections.Generic;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
 using System.Windows.Media;
 using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
 
 namespace Phihong_EVSE_UI_Tool
 {

+ 2 - 12
PlugChargingUC.xaml.cs

@@ -1,19 +1,9 @@
-using System;
-using System.Collections.Generic;
+using Microsoft.WindowsAPICodePack.Dialogs;
+using System;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
 using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using Microsoft.WindowsAPICodePack.Dialogs;
 
 namespace Phihong_EVSE_UI_Tool
 {

+ 0 - 2
Properties/AssemblyInfo.cs

@@ -1,6 +1,4 @@
 using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Windows;
 

+ 0 - 4
Utility.cs

@@ -1,9 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Media;