diff --git a/LICENSE.TXT b/LICENSE.TXT
deleted file mode 100644
index 3668016fc..000000000
--- a/LICENSE.TXT
+++ /dev/null
@@ -1,69 +0,0 @@
-Apache License
-Version 2.0, January 2004
-http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
-
-"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
-
-2. Grant of Copyright License.
-
-Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License.
-
-Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution.
-
-You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
-
-1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
-
-2. You must cause any modified files to carry prominent notices stating that You changed the files; and
-
-3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-
-4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
-
-You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
-
-5. Submission of Contributions.
-
-Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
-
-6. Trademarks.
-
-This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty.
-
-Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability.
-
-In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability.
-
-While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
\ No newline at end of file
diff --git a/README.TXT b/README.TXT
deleted file mode 100644
index 13472c0ea..000000000
--- a/README.TXT
+++ /dev/null
@@ -1,27 +0,0 @@
-SuperSocket
-
-SuperSocket is a light weight extensible socket application framework.
-You can use it to build a command based server side socket application easily without thinking about how to use socket,
-how to maintain the socket connections and how socket works(synchronize/asynchronize).
-
-It is a pure C# project which is designed to be extended, so it is easy to be integrated to your existing system.
-As long as your systems (like forum/CRM/MIS/HRM/ERP) are developed in .NET language,
-you must be able to use SuperSocket to build your socket application as a part of your current system perfectly.
-
-
-Project homepage: http://supersocket.codeplex.com/
-SVN address: https://SuperSocket.svn.codeplex.com/svn
-Author email address: kerry-jiang@hotmail.com
-
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and limitations under the License.
-
-
-Copyright 2012 Kerry Jiang (kerry-jiang@hotmail.com)
\ No newline at end of file
diff --git a/ServerManager/mainline/Client/SlClient/App.xaml b/ServerManager/mainline/Client/SlClient/App.xaml
deleted file mode 100644
index efed58d5b..000000000
--- a/ServerManager/mainline/Client/SlClient/App.xaml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/SlClient/App.xaml.cs b/ServerManager/mainline/Client/SlClient/App.xaml.cs
deleted file mode 100644
index 9426eb942..000000000
--- a/ServerManager/mainline/Client/SlClient/App.xaml.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Net;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using SuperSocket.Management.Client.Config;
-
-namespace SuperSocket.Management.Client
-{
- public partial class App : Application
- {
-
- public App()
- {
- this.Startup += this.Application_Startup;
- this.Exit += this.Application_Exit;
- this.UnhandledException += this.Application_UnhandledException;
-
- InitializeComponent();
- }
-
- private void Application_Startup(object sender, StartupEventArgs e)
- {
- InitailizeConfig();
- this.RootVisual = new MainPage();
- }
-
- private void Application_Exit(object sender, EventArgs e)
- {
-
- }
-
- private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
- {
- // If the app is running outside of the debugger then report the exception using
- // the browser's exception mechanism. On IE this will display it a yellow alert
- // icon in the status bar and Firefox will display a script error.
- if (!System.Diagnostics.Debugger.IsAttached)
- {
-
- // NOTE: This will allow the application to continue running after an exception has been thrown
- // but not handled.
- // For production applications this error handling should be replaced with something that will
- // report the error to the website and stop the application.
- e.Handled = true;
- Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
- }
- }
-
- private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
- {
- try
- {
- string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
- errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
-
- System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
- }
- catch (Exception)
- {
- }
- }
-
- internal static ClientAppConfig ClientConfig { get; private set; }
-
- private const string m_ConfigFile = "Client.config";
-
- private void InitailizeConfig()
- {
- if (!File.Exists(m_ConfigFile))
- {
- var config = new ClientAppConfig();
- config.Servers = new ServerConfig[] { new ServerConfig { Name = "localhost", Host = "localhost", Port = 4502, UserName = "kerry", Password = Silverlight.GetSHA1Hash("123456") } };
- ClientConfig = config;
- return;
- }
-
- var configXml = File.ReadAllText(m_ConfigFile, Encoding.UTF8);
- ClientConfig = configXml.XmlDeserialize();
- }
-
- internal static void SaveConfig()
- {
- ClientConfig.XmlSerialize(m_ConfigFile);
- }
- }
-}
diff --git a/ServerManager/mainline/Client/SlClient/MainPage.xaml b/ServerManager/mainline/Client/SlClient/MainPage.xaml
deleted file mode 100644
index aebc4ebe5..000000000
--- a/ServerManager/mainline/Client/SlClient/MainPage.xaml
+++ /dev/null
@@ -1,235 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/SlClient/MainPage.xaml.cs b/ServerManager/mainline/Client/SlClient/MainPage.xaml.cs
deleted file mode 100644
index 5a412ad3d..000000000
--- a/ServerManager/mainline/Client/SlClient/MainPage.xaml.cs
+++ /dev/null
@@ -1,106 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using GalaSoft.MvvmLight.Messaging;
-using SuperSocket.ClientEngine;
-using SuperSocket.Management.Client.ViewModel;
-
-namespace SuperSocket.Management.Client
-{
- public partial class MainPage : UserControl
- {
- public MainPage()
- {
- InitializeComponent();
-
- Messenger.Default.Register(this, OnError);
- Messenger.Default.Register(this, OnNewServerMessage);
- Messenger.Default.Register(this, OnConfigCommandMessage);
- Messenger.Default.Register(this, HandleAlertMessage);
- }
-
- private void OnError(ErrorEventArgs e)
- {
- Dispatcher.BeginInvoke(new Action((i) =>
- {
- System.Windows.MessageBox.Show(i.Exception.Message);
- }), e);
- }
-
- private void OnNewServerMessage(NewServerMessage message)
- {
- var window = new ChildWindow();
- var contentControl = new NewEditServer();
- contentControl.DataContext = new NewServerDetailViewModel();
- window.Content = contentControl;
- window.Closed += (s, e) =>
- {
- Messenger.Default.Unregister(this);
- Application.Current.RootVisual.SetValue(Control.IsEnabledProperty, true);
- };
-
- Messenger.Default.Register(this, (m) =>
- {
- window.DialogResult = false;
- window.Close();
- });
-
- window.Show();
- }
-
- private void OnConfigCommandMessage(ConfigCommandMessage message)
- {
- var window = new ChildWindow();
- var contentControl = new NewEditServer();
- contentControl.DataContext = new EditServerDetailViewModel(message.Server);
- window.Content = contentControl;
- window.Closed += (s, e) =>
- {
- Messenger.Default.Unregister(this);
- Application.Current.RootVisual.SetValue(Control.IsEnabledProperty, true);
- };
-
- Messenger.Default.Register(this, (m) =>
- {
- window.DialogResult = false;
- window.Close();
- });
-
- window.Show();
- }
-
- private void HandleAlertMessage(AlertMessage message)
- {
- Dispatcher.BeginInvoke((Action)((m) =>
- {
- System.Windows.MessageBox.Show(m.Message);
- }), message);
- }
-
- private void Grid_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
- {
- var grid = sender as DataGrid;
-
- IEnumerable elementsUnderMouse = VisualTreeHelper.FindElementsInHostCoordinates(e.GetPosition(null), this);
-
- DataGridRow row = elementsUnderMouse
- .Where(uie => uie is DataGridRow)
- .Cast()
- .FirstOrDefault();
-
- if (row != null)
- {
- grid.SelectedItem = row.DataContext;
- e.Handled = false;
- }
- }
- }
-}
diff --git a/ServerManager/mainline/Client/SlClient/NewEditServer.xaml b/ServerManager/mainline/Client/SlClient/NewEditServer.xaml
deleted file mode 100644
index 4a96e937c..000000000
--- a/ServerManager/mainline/Client/SlClient/NewEditServer.xaml
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/SlClient/NewEditServer.xaml.cs b/ServerManager/mainline/Client/SlClient/NewEditServer.xaml.cs
deleted file mode 100644
index d9cdeb9cb..000000000
--- a/ServerManager/mainline/Client/SlClient/NewEditServer.xaml.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-
-namespace SuperSocket.Management.Client
-{
- public partial class NewEditServer : UserControl
- {
- public NewEditServer()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/SlClient/Properties/AppManifest.xml b/ServerManager/mainline/Client/SlClient/Properties/AppManifest.xml
deleted file mode 100644
index a95523275..000000000
--- a/ServerManager/mainline/Client/SlClient/Properties/AppManifest.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
diff --git a/ServerManager/mainline/Client/SlClient/Properties/AssemblyInfo.cs b/ServerManager/mainline/Client/SlClient/Properties/AssemblyInfo.cs
deleted file mode 100644
index d087739bd..000000000
--- a/ServerManager/mainline/Client/SlClient/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("SuperSocket.Management.Client")]
-[assembly: AssemblyDescription("SuperSocket.Management.Client for Silverlight")]
-[assembly: ComVisible(false)]
-[assembly: Guid("fa39d865-8594-4073-999d-0de177759da5")]
diff --git a/ServerManager/mainline/Client/SlClient/Silverlight.cs b/ServerManager/mainline/Client/SlClient/Silverlight.cs
deleted file mode 100644
index 3be73057e..000000000
--- a/ServerManager/mainline/Client/SlClient/Silverlight.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-
-namespace SuperSocket.Management.Client
-{
- public static class Silverlight
- {
- public static string GetSHA1Hash(string val)
- {
- byte[] data = System.Text.Encoding.UTF8.GetBytes(val);
- System.Security.Cryptography.SHA1 sha = new System.Security.Cryptography.SHA1Managed();
- byte[] res = sha.ComputeHash(data);
- return Convert.ToBase64String(res);
- }
- }
-}
diff --git a/ServerManager/mainline/Client/SlClient/SlClient.csproj b/ServerManager/mainline/Client/SlClient/SlClient.csproj
deleted file mode 100644
index ccef82fd8..000000000
--- a/ServerManager/mainline/Client/SlClient/SlClient.csproj
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 8.0.50727
- 2.0
- {0168FE6C-E37D-4521-9C68-5F902371A3A9}
- {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
- Library
- Properties
- SuperSocket.Management.Client
- SuperSocket.Management.Client
- Silverlight
- v4.0
- $(TargetFrameworkVersion)
- true
-
-
- true
- true
- SlClient.xap
- Properties\AppManifest.xml
- SuperSocket.Management.Client.App
- SlClientTestPage.html
- true
- true
- false
- Properties\OutOfBrowserSettings.xml
- false
- true
-
-
-
-
-
-
- v3.5
-
-
- true
- full
- false
- Bin\Debug
- DEBUG;TRACE;SILVERLIGHT
- true
- true
- prompt
- 4
-
-
- pdbonly
- true
- Bin\Release
- TRACE;SILVERLIGHT
- true
- true
- prompt
- 4
-
-
-
- ..\..\Reference\MvvmLight\GalaSoft.MvvmLight.SL4.dll
-
-
-
-
-
-
-
-
-
-
-
-
- ..\..\Reference\SilverlightToolkit\40\System.Windows.Controls.Input.Toolkit.dll
-
-
-
-
- False
- C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\System.Xml.Serialization.dll
-
-
- False
- ..\..\Reference\WebSocket4Net\sl40\$(Configuration)\WebSocket4Net.dll
-
-
-
-
- GlobalAssemblyInfo.cs
-
-
- Shared\CommandName.cs
-
-
- Shared\InstanceInfo.cs
-
-
- Shared\ListenerInfo.cs
-
-
- Shared\LoginInfo.cs
-
-
- Shared\LoginResult.cs
-
-
- Shared\ServerInfo.cs
-
-
- Shared\StartResult.cs
-
-
- Shared\StopResult.cs
-
-
- Config\ClientAppConfig.cs
-
-
- Config\ServerConfig.cs
-
-
- Converter\BytesSizeConverter.cs
-
-
- Converter\BytesSizeFormatProvider.cs
-
-
- Converter\RowTemplateConverter.cs
-
-
- Converter\ViewModelConverter.cs
-
-
- Converter\VisibilityConverter.cs
-
-
- Extensions.cs
-
-
- InstanceGroupDescription.cs
-
-
- Messages.cs
-
-
- ViewModel\ConnectionState.cs
-
-
- ViewModel\EditServerDetailViewModel.cs
-
-
- ViewModel\FaultInstanceViewModel.cs
-
-
- ViewModel\InstanceState.cs
-
-
- ViewModel\InstanceViewModel.cs
-
-
- ViewModel\InstanceViewModelBase.cs
-
-
- ViewModel\LoadingInstanceViewModel.cs
-
-
- ViewModel\MainViewModel.cs
-
-
- ViewModel\MyViewModelBase.cs
-
-
- ViewModel\NewServerDetailViewModel.cs
-
-
- ViewModel\ServerDetailViewModel.cs
-
-
- ViewModel\ServerViewModel.cs
-
-
- ViewModel\ViewModelLocator.cs
-
-
- App.xaml
-
-
- MainPage.xaml
-
-
- NewEditServer.xaml
-
-
-
-
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
-
-
-
-
-
-
-
-
- Resources\Left.png
-
-
- Resources\Server.ico
-
-
- Resources\Setting.png
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServerManager/mainline/Client/SlClient/Themes/Default/Skin.xaml b/ServerManager/mainline/Client/SlClient/Themes/Default/Skin.xaml
deleted file mode 100644
index a62da115c..000000000
--- a/ServerManager/mainline/Client/SlClient/Themes/Default/Skin.xaml
+++ /dev/null
@@ -1,246 +0,0 @@
-
-
-
- #FFF4FAFD
- #FFCFEDFD
- #FFD8F0FA
- #FF98DDFB
- #FFE2F5FF
- #FFC0E7FC
- #FF9EDDFF
- #59D6D7D6
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/SlClient/Tuple.cs b/ServerManager/mainline/Client/SlClient/Tuple.cs
deleted file mode 100644
index 2e19c6dcb..000000000
--- a/ServerManager/mainline/Client/SlClient/Tuple.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace WebSocket4Net
-{
- public class Tuple
- {
- public Tuple(T1 item1, T2 item2)
- {
- Item1 = item1;
- Item2 = item2;
- }
-
- public T1 Item1 { get; private set; }
-
- public T2 Item2 { get; private set; }
- }
-
- public class Tuple
- {
- public Tuple(T1 item1, T2 item2, T3 item3)
- {
- Item1 = item1;
- Item2 = item2;
- Item3 = item3;
- }
-
- public T1 Item1 { get; private set; }
-
- public T2 Item2 { get; private set; }
-
- public T3 Item3 { get; private set; }
- }
-
- public class Tuple
- {
- public Tuple(T1 item1, T2 item2, T3 item3, T4 item4)
- {
- Item1 = item1;
- Item2 = item2;
- Item3 = item3;
- Item4 = item4;
- }
-
- public T1 Item1 { get; private set; }
-
- public T2 Item2 { get; private set; }
-
- public T3 Item3 { get; private set; }
-
- public T4 Item4 { get; private set; }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/App.xaml b/ServerManager/mainline/Client/WpfClient/App.xaml
deleted file mode 100644
index 6f79b9266..000000000
--- a/ServerManager/mainline/Client/WpfClient/App.xaml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/WpfClient/App.xaml.cs b/ServerManager/mainline/Client/WpfClient/App.xaml.cs
deleted file mode 100644
index 99d693393..000000000
--- a/ServerManager/mainline/Client/WpfClient/App.xaml.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Linq;
-using System.Windows;
-using System.Threading;
-using SuperSocket.Management.Client.Config;
-using System.IO;
-using System.Text;
-
-namespace SuperSocket.Management.Client
-{
- ///
- /// Interaction logic for App.xaml
- ///
- public partial class App : Application
- {
- private Mutex m_SigleInstanceMutex;
-
- internal static ClientAppConfig ClientConfig { get; private set; }
-
- protected override void OnStartup(StartupEventArgs e)
- {
- bool createdNew;
- m_SigleInstanceMutex = new Mutex(true, AppDomain.CurrentDomain.FriendlyName, out createdNew);
-
- if (createdNew)
- {
- AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
- InitailizeConfig();
- base.OnStartup(e);
- }
- else
- {
- this.Shutdown();
- }
- }
-
- void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
- {
- //MessageBox.Show(e.ExceptionObject.ToString());
- }
-
- private const string m_ConfigFile = "Client.config";
-
- private void InitailizeConfig()
- {
- if (!File.Exists(m_ConfigFile))
- {
- var config = new ClientAppConfig();
- config.Servers = new ServerConfig[0];
- ClientConfig = config;
- return;
- }
-
- var configXml = File.ReadAllText(m_ConfigFile, Encoding.UTF8);
- ClientConfig = configXml.XmlDeserialize();
- }
-
- internal static void SaveConfig()
- {
- ClientConfig.XmlSerialize(m_ConfigFile);
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/ChildWindow.xaml b/ServerManager/mainline/Client/WpfClient/ChildWindow.xaml
deleted file mode 100644
index 46279068c..000000000
--- a/ServerManager/mainline/Client/WpfClient/ChildWindow.xaml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
diff --git a/ServerManager/mainline/Client/WpfClient/ChildWindow.xaml.cs b/ServerManager/mainline/Client/WpfClient/ChildWindow.xaml.cs
deleted file mode 100644
index 1e871c4d5..000000000
--- a/ServerManager/mainline/Client/WpfClient/ChildWindow.xaml.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-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.Shapes;
-
-namespace SuperSocket.Management.Client
-{
- ///
- /// Interaction logic for ChildWindow.xaml
- ///
- public partial class ChildWindow : Window
- {
- public ChildWindow()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Config/ClientAppConfig.cs b/ServerManager/mainline/Client/WpfClient/Config/ClientAppConfig.cs
deleted file mode 100644
index 5c240a088..000000000
--- a/ServerManager/mainline/Client/WpfClient/Config/ClientAppConfig.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Xml.Serialization;
-
-namespace SuperSocket.Management.Client.Config
-{
- [XmlType("ClientApp")]
- public class ClientAppConfig
- {
- [XmlArray]
- public ServerConfig[] Servers { get; set; }
-
- public string SecurityKey { get; set; }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Config/ServerConfig.cs b/ServerManager/mainline/Client/WpfClient/Config/ServerConfig.cs
deleted file mode 100644
index 08d88df1a..000000000
--- a/ServerManager/mainline/Client/WpfClient/Config/ServerConfig.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Xml.Serialization;
-
-namespace SuperSocket.Management.Client.Config
-{
- [XmlType("Server")]
- public class ServerConfig
- {
- [XmlAttribute("name")]
- public string Name { get; set; }
-
- [XmlAttribute("host")]
- public string Host { get; set; }
-
- [XmlAttribute("port")]
- public int Port { get; set; }
-
- [XmlAttribute("username")]
- public string UserName { get; set; }
-
- [XmlAttribute("password")]
- public string Password { get; set; }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Converter/BytesSizeConverter.cs b/ServerManager/mainline/Client/WpfClient/Converter/BytesSizeConverter.cs
deleted file mode 100644
index cea146718..000000000
--- a/ServerManager/mainline/Client/WpfClient/Converter/BytesSizeConverter.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Data;
-
-namespace SuperSocket.Management.Client.Converter
-{
- public class BytesSizeConverter : IValueConverter
- {
- private BytesSizeFormatProvider m_FormatProvider = new BytesSizeFormatProvider();
-
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return String.Format(m_FormatProvider, "{0:fs}", (double)value);
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Converter/BytesSizeFormatProvider.cs b/ServerManager/mainline/Client/WpfClient/Converter/BytesSizeFormatProvider.cs
deleted file mode 100644
index 28703dcb1..000000000
--- a/ServerManager/mainline/Client/WpfClient/Converter/BytesSizeFormatProvider.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace SuperSocket.Management.Client.Converter
-{
- class BytesSizeFormatProvider : IFormatProvider, ICustomFormatter
- {
- public object GetFormat(Type formatType)
- {
- if (formatType == typeof(ICustomFormatter)) return this;
- return null;
- }
-
- private const string fileSizeFormat = "fs";
- private const Decimal OneKiloByte = 1024M;
- private const Decimal OneMegaByte = OneKiloByte * 1024M;
- private const Decimal OneGigaByte = OneMegaByte * 1024M;
-
- public string Format(string format, object arg, IFormatProvider formatProvider)
- {
- if (format == null || !format.StartsWith(fileSizeFormat))
- {
- return DefaultFormat(format, arg, formatProvider);
- }
-
- if (arg is string)
- {
- return DefaultFormat(format, arg, formatProvider);
- }
-
- Decimal size;
-
- try
- {
- size = Convert.ToDecimal(arg);
- }
- catch (InvalidCastException)
- {
- return DefaultFormat(format, arg, formatProvider);
- }
-
- string suffix;
- if (size > OneGigaByte)
- {
- size /= OneGigaByte;
- suffix = "GB";
- }
- else if (size > OneMegaByte)
- {
- size /= OneMegaByte;
- suffix = "MB";
- }
- else if (size > OneKiloByte)
- {
- size /= OneKiloByte;
- suffix = "kB";
- }
- else
- {
- suffix = " B";
- }
-
- string precision = format.Substring(2);
-
- if (String.IsNullOrEmpty(precision))
- precision = "2";
-
- return String.Format("{0:N" + precision + "}{1}", size, suffix);
-
- }
-
- private static string DefaultFormat(string format, object arg, IFormatProvider formatProvider)
- {
- IFormattable formattableArg = arg as IFormattable;
- if (formattableArg != null)
- {
- return formattableArg.ToString(format, formatProvider);
- }
- return arg.ToString();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Converter/InstanceRowHeightConverter.cs b/ServerManager/mainline/Client/WpfClient/Converter/InstanceRowHeightConverter.cs
deleted file mode 100644
index e858da385..000000000
--- a/ServerManager/mainline/Client/WpfClient/Converter/InstanceRowHeightConverter.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using System.Windows.Data;
-using SuperSocket.Management.Client.ViewModel;
-
-namespace SuperSocket.Management.Client.Converter
-{
- public class InstanceRowHeightConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- if (value is LoadingInstanceViewModel)
- return 0;
- else
- return null;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Converter/RowTemplateConverter.cs b/ServerManager/mainline/Client/WpfClient/Converter/RowTemplateConverter.cs
deleted file mode 100644
index 75a8c5631..000000000
--- a/ServerManager/mainline/Client/WpfClient/Converter/RowTemplateConverter.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using SuperSocket.Management.Client.ViewModel;
-
-namespace SuperSocket.Management.Client.Converter
-{
- public class RowTemplateConverter : IValueConverter
- {
- public ControlTemplate NormalTemplate { get; set; }
-
- public ControlTemplate LoadingTemplate { get; set; }
-
- public ControlTemplate FaultTemplate { get; set; }
-
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- if (value is LoadingInstanceViewModel)
- return LoadingTemplate;
- else if (value is FaultInstanceViewModel)
- return FaultTemplate;
- else
- return NormalTemplate;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Converter/ViewModelConverter.cs b/ServerManager/mainline/Client/WpfClient/Converter/ViewModelConverter.cs
deleted file mode 100644
index 9a228f797..000000000
--- a/ServerManager/mainline/Client/WpfClient/Converter/ViewModelConverter.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Data;
-using SuperSocket.Management.Client.ViewModel;
-
-namespace SuperSocket.Management.Client.Converter
-{
- public class ViewModelConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- var viewModelSource = value as Dictionary;
-
- IViewModelFactory viewModelFactory;
-
- if (!viewModelSource.TryGetValue(parameter.ToString(), out viewModelFactory))
- throw new ArgumentException("parameter");
-
- return viewModelFactory.CreateViewModel();
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Converter/VisibilityConverter.cs b/ServerManager/mainline/Client/WpfClient/Converter/VisibilityConverter.cs
deleted file mode 100644
index 298a448cd..000000000
--- a/ServerManager/mainline/Client/WpfClient/Converter/VisibilityConverter.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Data;
-using System.Windows;
-
-namespace SuperSocket.Management.Client.Converter
-{
- public class VisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- bool isChecked = (bool)value;
- return isChecked ? Visibility.Visible : Visibility.Collapsed;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Extensions.cs b/ServerManager/mainline/Client/WpfClient/Extensions.cs
deleted file mode 100644
index e3ac0b678..000000000
--- a/ServerManager/mainline/Client/WpfClient/Extensions.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Xml.Serialization;
-using System.IO;
-
-namespace SuperSocket.Management.Client
-{
- public static class Extensions
- {
- public static void XmlSerialize(this object target, string savePath)
- {
- var serializer = new XmlSerializer(target.GetType());
-
- using (StreamWriter writer = new StreamWriter(savePath, false, Encoding.UTF8))
- {
- serializer.Serialize(writer, target);
- writer.Close();
- }
- }
-
- public static T XmlDeserialize(this string xml)
- {
- var serializer = new XmlSerializer(typeof(T));
-
- using (var reader = new StringReader(xml))
- {
- var target = serializer.Deserialize(reader);
-
- if(target == null)
- return default(T);
-
- return (T)target;
- }
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/InstanceGroupDescription.cs b/ServerManager/mainline/Client/WpfClient/InstanceGroupDescription.cs
deleted file mode 100644
index f9bf019ec..000000000
--- a/ServerManager/mainline/Client/WpfClient/InstanceGroupDescription.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.ComponentModel;
-using SuperSocket.Management.Client.ViewModel;
-
-namespace SuperSocket.Management.Client
-{
- public class InstanceGroupDescription : GroupDescription
- {
- public override object GroupNameFromItem(object item, int level, System.Globalization.CultureInfo culture)
- {
- var instance = item as InstanceViewModelBase;
- return instance.Server;
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/MainWindow.xaml b/ServerManager/mainline/Client/WpfClient/MainWindow.xaml
deleted file mode 100644
index aec63bb3d..000000000
--- a/ServerManager/mainline/Client/WpfClient/MainWindow.xaml
+++ /dev/null
@@ -1,265 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Visible
-
-
-
-
-
-
- Visible
-
-
-
-
-
-
-
-
-
-
-
-
- Collapsed
-
-
-
-
-
-
- Collapsed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {0}/{1}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/WpfClient/MainWindow.xaml.cs b/ServerManager/mainline/Client/WpfClient/MainWindow.xaml.cs
deleted file mode 100644
index df3f1d75b..000000000
--- a/ServerManager/mainline/Client/WpfClient/MainWindow.xaml.cs
+++ /dev/null
@@ -1,168 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Forms;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Threading;
-using GalaSoft.MvvmLight.Messaging;
-using SuperSocket.ClientEngine;
-using SuperSocket.Management.Client.ViewModel;
-
-namespace SuperSocket.Management.Client
-{
- ///
- /// Interaction logic for MainWindow.xaml
- ///
- public partial class MainWindow : Window
- {
- private NotifyIcon m_NotifyIcon;
-
- private bool m_ForceQuit = false;
-
- public MainWindow()
- {
- InitializeComponent();
-
- Messenger.Default.Register(this, OnError);
- Messenger.Default.Register(this, OnExitMessage);
- Messenger.Default.Register(this, OnNewServerMessage);
- Messenger.Default.Register(this, OnConfigCommandMessage);
- Messenger.Default.Register(this, HandleAlertMessage);
-
- m_NotifyIcon = new System.Windows.Forms.NotifyIcon();
- m_NotifyIcon.Text = "SuperSocket Server Manager";
- m_NotifyIcon.Icon = Properties.Resources.Server;
- m_NotifyIcon.Visible = true;
- m_NotifyIcon.DoubleClick += new EventHandler(m_NotifyIcon_DoubleClick);
-
- var quitMenuItem = new System.Windows.Forms.MenuItem();
- quitMenuItem.Text = "&Exit";
- quitMenuItem.Click += new EventHandler(quitMenuItem_Click);
-
- var contextMenu = new System.Windows.Forms.ContextMenu();
- contextMenu.MenuItems.Add(quitMenuItem);
-
- m_NotifyIcon.ContextMenu = contextMenu;
- }
-
- void quitMenuItem_Click(object sender, EventArgs e)
- {
- m_ForceQuit = true;
- this.Close();
- }
-
- void m_NotifyIcon_DoubleClick(object sender, EventArgs e)
- {
- this.Show();
- this.WindowState = WindowState.Normal;
- }
-
- protected override void OnStateChanged(EventArgs e)
- {
- if (WindowState == WindowState.Minimized)
- this.Hide();
-
- base.OnStateChanged(e);
- }
-
- protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
- {
- if (!m_ForceQuit)
- {
- e.Cancel = true;
- this.Hide();
- }
-
- base.OnClosing(e);
- }
-
- protected override void OnClosed(EventArgs e)
- {
- if (m_NotifyIcon != null)
- {
- m_NotifyIcon.Visible = false;
- m_NotifyIcon = null;
- }
-
- base.OnClosed(e);
- }
-
- private void OnError(ErrorEventArgs e)
- {
- Dispatcher.Invoke(new Action((i) =>
- {
- System.Windows.MessageBox.Show(i.Exception.Message);
- }), e);
- }
-
- private void OnExitMessage(ExitMessage message)
- {
- if (System.Windows.MessageBox.Show(this, "Are you are you want to quit?", "Quit", MessageBoxButton.YesNo) != MessageBoxResult.Yes)
- return;
-
- m_ForceQuit = true;
- this.Close();
- }
-
- private void OnNewServerMessage(NewServerMessage message)
- {
- var window = new ChildWindow();
- var contentControl = new NewEditServer();
- contentControl.DataContext = new NewServerDetailViewModel();
- window.Content = contentControl;
- window.SizeToContent = SizeToContent.WidthAndHeight;
- window.Topmost = true;
- window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
- window.ResizeMode = ResizeMode.NoResize;
- window.Title = "New Server";
-
- Messenger.Default.Register(this, (m) =>
- {
- window.DialogResult = false;
- window.Close();
- });
-
- window.ShowDialog();
- Messenger.Default.Unregister(this);
- }
-
- private void OnConfigCommandMessage(ConfigCommandMessage message)
- {
- var window = new ChildWindow();
- var contentControl = new NewEditServer();
- contentControl.DataContext = new EditServerDetailViewModel(message.Server);
- window.Content = contentControl;
- window.SizeToContent = SizeToContent.WidthAndHeight;
- window.Topmost = true;
- window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
- window.ResizeMode = ResizeMode.NoResize;
- window.Title = "Edit Server";
-
- Messenger.Default.Register(this, (m) =>
- {
- window.DialogResult = false;
- window.Close();
- });
-
- window.ShowDialog();
- Messenger.Default.Unregister(this);
- }
-
- private void HandleAlertMessage(AlertMessage message)
- {
- Dispatcher.Invoke((Action)((m) =>
- {
- System.Windows.MessageBox.Show(m.Message);
- }), message);
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Messages.cs b/ServerManager/mainline/Client/WpfClient/Messages.cs
deleted file mode 100644
index 2bdb13051..000000000
--- a/ServerManager/mainline/Client/WpfClient/Messages.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using SuperSocket.Management.Client.Config;
-using SuperSocket.Management.Client.ViewModel;
-
-namespace SuperSocket.Management.Client
-{
- class InProgressMessage
- {
- public string Target { get; set; }
- }
-
- abstract class EmptyMessageBase
- where T : class, new()
- {
- public static T Empty { get; private set; }
-
- static EmptyMessageBase()
- {
- Empty = new T();
- }
- }
-
-#if !SILVERLIGHT
- class ExitMessage : EmptyMessageBase
- {
- }
-#endif
-
- class ManageServersMessage : EmptyMessageBase
- {
- }
-
- class NewServerMessage : EmptyMessageBase
- {
- }
-
- class CloseNewServerMessage : EmptyMessageBase
- {
- }
-
- class CloseEditServerMessage : EmptyMessageBase
- {
- }
-
- class NewEditServerMessage
- {
- public string Message { get; set; }
- }
-
- class ConfigCommandMessage
- {
- public ConfigCommandMessage(ServerViewModel server)
- {
- Server = server;
- }
-
- public ServerViewModel Server { get; private set; }
- }
-
- class NewServerCreatedMessage
- {
- public NewServerCreatedMessage(ServerConfig server)
- {
- Server = server;
- }
-
- public ServerConfig Server { get; private set; }
- }
-
- class ServerRemovedMessage
- {
- public ServerRemovedMessage(ServerConfig server)
- {
- Server = server;
- }
-
- public ServerConfig Server { get; private set; }
- }
-
- class AlertMessage
- {
- public AlertMessage(string message)
- {
- Message = message;
- }
-
- public string Message { get; private set; }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/NewEditServer.xaml b/ServerManager/mainline/Client/WpfClient/NewEditServer.xaml
deleted file mode 100644
index 561873ad1..000000000
--- a/ServerManager/mainline/Client/WpfClient/NewEditServer.xaml
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/WpfClient/NewEditServer.xaml.cs b/ServerManager/mainline/Client/WpfClient/NewEditServer.xaml.cs
deleted file mode 100644
index b972200ef..000000000
--- a/ServerManager/mainline/Client/WpfClient/NewEditServer.xaml.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-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 GalaSoft.MvvmLight.Messaging;
-
-namespace SuperSocket.Management.Client
-{
- ///
- /// Interaction logic for NewServer.xaml
- ///
- public partial class NewEditServer : UserControl
- {
- public NewEditServer()
- {
- InitializeComponent();
- Messenger.Default.Register(this, OnNewEditServerMessage);
- Messenger.Default.Register(this, HandleDialogMessage);
- }
-
- private void OnNewEditServerMessage(NewEditServerMessage message)
- {
- Dispatcher.Invoke((Action)((w, m) => MessageBox.Show(w, m.Message)), (Window)this.Parent, message);
- }
-
- private void HandleDialogMessage(DialogMessage message)
- {
- if (message == null)
- {
- return;
- }
-
- if (message.Sender == this.DataContext)
- {
- var result = MessageBox.Show(
- (Window)this.Parent,
- message.Content,
- message.Caption,
- message.Button,
- message.Icon,
- message.DefaultResult,
- message.Options);
-
- if (message.Callback != null)
- {
- message.Callback(result);
- }
- }
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Properties/AssemblyInfo.cs b/ServerManager/mainline/Client/WpfClient/Properties/AssemblyInfo.cs
deleted file mode 100644
index 7229907c5..000000000
--- a/ServerManager/mainline/Client/WpfClient/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-[assembly: AssemblyTitle("SuperSocket.Management.Client")]
-[assembly: AssemblyDescription("SuperSocket.Management.Client")]
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//CultureYouAreCodingWith in your .csproj file
-//inside a . For example, if you are using US english
-//in your source files, set the to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
diff --git a/ServerManager/mainline/Client/WpfClient/Properties/Resources.Designer.cs b/ServerManager/mainline/Client/WpfClient/Properties/Resources.Designer.cs
deleted file mode 100644
index 22930898e..000000000
--- a/ServerManager/mainline/Client/WpfClient/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.261
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace SuperSocket.Management.Client.Properties {
- using System;
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources() {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SuperSocket.Management.Client.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
-
- internal static System.Drawing.Icon Server {
- get {
- object obj = ResourceManager.GetObject("Server", resourceCulture);
- return ((System.Drawing.Icon)(obj));
- }
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Properties/Resources.resx b/ServerManager/mainline/Client/WpfClient/Properties/Resources.resx
deleted file mode 100644
index 03a4caa45..000000000
--- a/ServerManager/mainline/Client/WpfClient/Properties/Resources.resx
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
- ..\Resources\Server.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
\ No newline at end of file
diff --git a/ServerManager/mainline/Client/WpfClient/Properties/Settings.Designer.cs b/ServerManager/mainline/Client/WpfClient/Properties/Settings.Designer.cs
deleted file mode 100644
index fe27565f7..000000000
--- a/ServerManager/mainline/Client/WpfClient/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.261
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace SuperSocket.Management.Client.Properties {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Properties/Settings.settings b/ServerManager/mainline/Client/WpfClient/Properties/Settings.settings
deleted file mode 100644
index 8f2fd95d6..000000000
--- a/ServerManager/mainline/Client/WpfClient/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServerManager/mainline/Client/WpfClient/Resources/Left.png b/ServerManager/mainline/Client/WpfClient/Resources/Left.png
deleted file mode 100644
index f309f2b95..000000000
Binary files a/ServerManager/mainline/Client/WpfClient/Resources/Left.png and /dev/null differ
diff --git a/ServerManager/mainline/Client/WpfClient/Resources/Server.ico b/ServerManager/mainline/Client/WpfClient/Resources/Server.ico
deleted file mode 100644
index bc9a728d2..000000000
Binary files a/ServerManager/mainline/Client/WpfClient/Resources/Server.ico and /dev/null differ
diff --git a/ServerManager/mainline/Client/WpfClient/Resources/Setting.png b/ServerManager/mainline/Client/WpfClient/Resources/Setting.png
deleted file mode 100644
index 8f835471f..000000000
Binary files a/ServerManager/mainline/Client/WpfClient/Resources/Setting.png and /dev/null differ
diff --git a/ServerManager/mainline/Client/WpfClient/Selector/InstanceRowStyleSelector.cs b/ServerManager/mainline/Client/WpfClient/Selector/InstanceRowStyleSelector.cs
deleted file mode 100644
index 58272a7ea..000000000
--- a/ServerManager/mainline/Client/WpfClient/Selector/InstanceRowStyleSelector.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using SuperSocket.Management.Client.ViewModel;
-
-namespace SuperSocket.Management.Client.Selector
-{
- public class InstanceRowStyleSelector : StyleSelector
- {
- public Style NormalStyle { get; set; }
-
- public Style LoadingStyle { get; set; }
-
- public Style FaultStyle { get; set; }
-
- public override Style SelectStyle(object item, System.Windows.DependencyObject container)
- {
- if (item is LoadingInstanceViewModel)
- return LoadingStyle;
- else if (item is FaultInstanceViewModel)
- return FaultStyle;
- else
- return NormalStyle;
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Themes/Default/CircularProgressBar.xaml b/ServerManager/mainline/Client/WpfClient/Themes/Default/CircularProgressBar.xaml
deleted file mode 100644
index a71130b87..000000000
--- a/ServerManager/mainline/Client/WpfClient/Themes/Default/CircularProgressBar.xaml
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/WpfClient/Themes/Default/CircularProgressBar.xaml.cs b/ServerManager/mainline/Client/WpfClient/Themes/Default/CircularProgressBar.xaml.cs
deleted file mode 100644
index babefa3f5..000000000
--- a/ServerManager/mainline/Client/WpfClient/Themes/Default/CircularProgressBar.xaml.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-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 System.Windows.Media.Animation;
-
-namespace SuperSocket.Management.Client.Themes.Default
-{
- ///
- /// Interaction logic for CircularProgressBar.xaml
- ///
- public partial class CircularProgressBar : UserControl
- {
- static CircularProgressBar()
- {
- //Use a default Animation Framerate of 30, which uses less CPU time
- //than the standard 50 which you get out of the box
- Timeline.DesiredFrameRateProperty.OverrideMetadata(
- typeof(Timeline),
- new FrameworkPropertyMetadata { DefaultValue = 30 });
- }
-
- public CircularProgressBar()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Themes/Default/HorizonProgressBar.xaml b/ServerManager/mainline/Client/WpfClient/Themes/Default/HorizonProgressBar.xaml
deleted file mode 100644
index 49a75b621..000000000
--- a/ServerManager/mainline/Client/WpfClient/Themes/Default/HorizonProgressBar.xaml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
diff --git a/ServerManager/mainline/Client/WpfClient/Themes/Default/HorizonProgressBar.xaml.cs b/ServerManager/mainline/Client/WpfClient/Themes/Default/HorizonProgressBar.xaml.cs
deleted file mode 100644
index e76146a27..000000000
--- a/ServerManager/mainline/Client/WpfClient/Themes/Default/HorizonProgressBar.xaml.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-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 System.Windows.Media.Animation;
-
-namespace SuperSocket.Management.Client.Themes.Default
-{
- ///
- /// Interaction logic for HorizonProgressBar.xaml
- ///
- public partial class HorizonProgressBar : UserControl
- {
- static HorizonProgressBar()
- {
- //Use a default Animation Framerate of 30, which uses less CPU time
- //than the standard 50 which you get out of the box
- //Timeline.DesiredFrameRateProperty.OverrideMetadata(
- // typeof(Timeline),
- // new FrameworkPropertyMetadata { DefaultValue = 30 });
- }
-
- public HorizonProgressBar()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/Themes/Default/Skin.xaml b/ServerManager/mainline/Client/WpfClient/Themes/Default/Skin.xaml
deleted file mode 100644
index a3aeef600..000000000
--- a/ServerManager/mainline/Client/WpfClient/Themes/Default/Skin.xaml
+++ /dev/null
@@ -1,357 +0,0 @@
-
-
-
- #FFF4FAFD
- #FFCFEDFD
- #FFD8F0FA
- #FF98DDFB
- #FFE2F5FF
- #FFC0E7FC
- #FF9EDDFF
- #59D6D7D6
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ServerManager/mainline/Client/WpfClient/ValidationRules/RequiredValidationRule.cs b/ServerManager/mainline/Client/WpfClient/ValidationRules/RequiredValidationRule.cs
deleted file mode 100644
index 5c5d8c37c..000000000
--- a/ServerManager/mainline/Client/WpfClient/ValidationRules/RequiredValidationRule.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Controls;
-
-namespace SuperSocket.Management.Client.ValidationRules
-{
- public class RequiredValidationRule : ValidationRule
- {
- public RequiredValidationRule()
- {
-
- }
-
- public string ErrorMessage { get; set; }
-
- public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
- {
- if (value == null || string.IsNullOrEmpty(value.ToString()))
- return new ValidationResult(false, ErrorMessage);
-
- return ValidationResult.ValidResult;
- }
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/ViewModel/ConnectionState.cs b/ServerManager/mainline/Client/WpfClient/ViewModel/ConnectionState.cs
deleted file mode 100644
index aa33382da..000000000
--- a/ServerManager/mainline/Client/WpfClient/ViewModel/ConnectionState.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace SuperSocket.Management.Client.ViewModel
-{
- public enum ConnectionState
- {
- None,
- Connecting,
- Connected,
- NotConnected,
- WaitingReconnect,
- Fault
- }
-}
diff --git a/ServerManager/mainline/Client/WpfClient/ViewModel/EditServerDetailViewModel.cs b/ServerManager/mainline/Client/WpfClient/ViewModel/EditServerDetailViewModel.cs
deleted file mode 100644
index fdaf23194..000000000
--- a/ServerManager/mainline/Client/WpfClient/ViewModel/EditServerDetailViewModel.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Controls;
-using GalaSoft.MvvmLight.Command;
-using GalaSoft.MvvmLight.Messaging;
-using SuperSocket.Management.Client.Config;
-
-namespace SuperSocket.Management.Client.ViewModel
-{
- public class EditServerDetailViewModel : ServerDetailViewModel
- {
- private ServerViewModel m_Server;
-
- public EditServerDetailViewModel(ServerViewModel server)
- : base(true)
- {
- m_Server = server;
-
- this.Name = server.Name;
- this.Host = server.Config.Host;
- this.Port = server.Config.Port;
- this.UserName = server.Config.UserName;
-
- CloseCommand = new RelayCommand