diff --git a/ezHttp/BizLogic/MainLogic.cs b/ezHttp/BizLogic/MainLogic.cs
index d854188..9f60df1 100644
--- a/ezHttp/BizLogic/MainLogic.cs
+++ b/ezHttp/BizLogic/MainLogic.cs
@@ -1,11 +1,7 @@
using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Net;
+using System.IO;
using FileManager;
-using HttpParser;
using SocketManager;
-using System.Net.Sockets;
using CommonLib;
namespace ezHttp
{
@@ -21,11 +17,16 @@ internal static bool Started
internal static bool StartService()
{
+ Logger log = new Logger("AppLogger");
+ if (!Directory.Exists(FileManager.Properties.FileManagerSettings.Default.ServerDirectory))
+ {
+ log.Error("Start failed: Server Directory doesn't exist!");
+ return false;
+ }
socketServer = new SocketServer();
socketServer.Init();
if (socketServer.Start() == false)
{
- Logger log=new Logger("AppLogger");
return false;
}
diff --git a/ezHttp/BizLogic/SettingsLogic.cs b/ezHttp/BizLogic/SettingsLogic.cs
index 2370f6e..bd96230 100644
--- a/ezHttp/BizLogic/SettingsLogic.cs
+++ b/ezHttp/BizLogic/SettingsLogic.cs
@@ -138,15 +138,12 @@ private bool DetectDirectory(string ServerDirectory)
{
if (!Directory.Exists(ServerDirectory))
{
- text_remind.Text = "Server Directory exist";
+ text_remind.Text = "Server Directory doesn't exist";
text_remind.Foreground = new SolidColorBrush(remind_error_color);
SetUnChanged();
return false;
}
- else
- {
- return true;
- }
+ return true;
}
private bool DetectFileBuffer(ref string FileBuffer)
diff --git a/ezHttp/MainWindow.xaml b/ezHttp/MainWindow.xaml
index 8475749..df8623a 100644
--- a/ezHttp/MainWindow.xaml
+++ b/ezHttp/MainWindow.xaml
@@ -131,10 +131,10 @@
-
+
-
+
@@ -144,7 +144,7 @@
-
+
@@ -154,7 +154,7 @@
-
+
@@ -165,7 +165,7 @@
-
+
@@ -175,7 +175,7 @@
-
+
@@ -195,8 +195,9 @@
-
+
+
-
-
-
+
+