diff --git a/Interact/JsonObject.cs b/Interact/JsonObject.cs index be58a46..d70a7c1 100644 --- a/Interact/JsonObject.cs +++ b/Interact/JsonObject.cs @@ -29,10 +29,4 @@ namespace Interact public string Motto = null; public int Photo = 0; //新头像大小 } - - //获取用户头像请求的包头 - internal class JsonGetUserPhotoHead : BaseHead - { - public string User; //要获取头像的用户名 - } } diff --git a/Interact/Message.cs b/Interact/Message.cs index d4033ee..26df5b0 100644 --- a/Interact/Message.cs +++ b/Interact/Message.cs @@ -37,7 +37,7 @@ namespace Interact public BaseHead Head; //包头 public byte[] Data; //包内容 public Action CallBack; //数据发送完成的回调函数。注意,此时仅保证数据已发送, - //服务器可能并没有处理完成请求 + //服务器可能并没有处理完成请求 } //允许请求的操作列表。具体定义见设计文档 public static class Operations diff --git a/StormChat/App.config b/StormChat/App.config deleted file mode 100644 index 74ade9d..0000000 --- a/StormChat/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/StormChat/LogForm.Designer.cs b/StormChat/LogForm.Designer.cs deleted file mode 100644 index 14587c3..0000000 --- a/StormChat/LogForm.Designer.cs +++ /dev/null @@ -1,160 +0,0 @@ -namespace StormChat -{ - partial class LogForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows 窗体设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.txtUser = new System.Windows.Forms.TextBox(); - this.txtPassword = new System.Windows.Forms.TextBox(); - this.btnLogin = new System.Windows.Forms.Button(); - this.chkRemerberPassword = new System.Windows.Forms.CheckBox(); - this.chkAutoLogin = new System.Windows.Forms.CheckBox(); - this.picPhoto = new System.Windows.Forms.PictureBox(); - this.lblBadge = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.picPhoto)).BeginInit(); - this.SuspendLayout(); - // - // txtUser - // - this.txtUser.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtUser.Font = new System.Drawing.Font("DengXian", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtUser.Location = new System.Drawing.Point(207, 260); - this.txtUser.Margin = new System.Windows.Forms.Padding(4); - this.txtUser.Name = "txtUser"; - this.txtUser.Size = new System.Drawing.Size(351, 30); - this.txtUser.TabIndex = 1; - this.txtUser.Text = "mattuy"; - // - // txtPassword - // - this.txtPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtPassword.Font = new System.Drawing.Font("DengXian", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtPassword.Location = new System.Drawing.Point(207, 295); - this.txtPassword.Margin = new System.Windows.Forms.Padding(133, 4, 4, 4); - this.txtPassword.Name = "txtPassword"; - this.txtPassword.PasswordChar = '*'; - this.txtPassword.Size = new System.Drawing.Size(351, 32); - this.txtPassword.TabIndex = 3; - this.txtPassword.Text = "1233211234567"; - // - // btnLogin - // - this.btnLogin.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.btnLogin.Font = new System.Drawing.Font("Microsoft YaHei", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnLogin.Location = new System.Drawing.Point(207, 362); - this.btnLogin.Margin = new System.Windows.Forms.Padding(4); - this.btnLogin.Name = "btnLogin"; - this.btnLogin.Size = new System.Drawing.Size(352, 48); - this.btnLogin.TabIndex = 6; - this.btnLogin.Text = "登录"; - this.btnLogin.UseVisualStyleBackColor = true; - this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click); - // - // chkRemerberPassword - // - this.chkRemerberPassword.AutoSize = true; - this.chkRemerberPassword.Font = new System.Drawing.Font("SimSun", 10F); - this.chkRemerberPassword.Location = new System.Drawing.Point(208, 335); - this.chkRemerberPassword.Margin = new System.Windows.Forms.Padding(4); - this.chkRemerberPassword.Name = "chkRemerberPassword"; - this.chkRemerberPassword.Size = new System.Drawing.Size(98, 21); - this.chkRemerberPassword.TabIndex = 4; - this.chkRemerberPassword.Text = "记住密码"; - this.chkRemerberPassword.UseVisualStyleBackColor = true; - // - // chkAutoLogin - // - this.chkAutoLogin.AutoSize = true; - this.chkAutoLogin.Font = new System.Drawing.Font("SimSun", 10F); - this.chkAutoLogin.Location = new System.Drawing.Point(449, 335); - this.chkAutoLogin.Margin = new System.Windows.Forms.Padding(4); - this.chkAutoLogin.Name = "chkAutoLogin"; - this.chkAutoLogin.Size = new System.Drawing.Size(98, 21); - this.chkAutoLogin.TabIndex = 5; - this.chkAutoLogin.Text = "自动登录"; - this.chkAutoLogin.UseVisualStyleBackColor = true; - // - // picPhoto - // - this.picPhoto.Image = global::StormChat.Properties.Resources.DefaultPhoto; - this.picPhoto.Location = new System.Drawing.Point(21, 260); - this.picPhoto.Margin = new System.Windows.Forms.Padding(4); - this.picPhoto.Name = "picPhoto"; - this.picPhoto.Size = new System.Drawing.Size(160, 150); - this.picPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.picPhoto.TabIndex = 4; - this.picPhoto.TabStop = false; - // - // lblBadge - // - this.lblBadge.BackColor = System.Drawing.Color.Transparent; - this.lblBadge.Dock = System.Windows.Forms.DockStyle.Top; - this.lblBadge.Font = new System.Drawing.Font("Microsoft Sans Serif", 50.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(2))); - this.lblBadge.ForeColor = System.Drawing.Color.Maroon; - this.lblBadge.Image = global::StormChat.Properties.Resources.LogFormBackground; - this.lblBadge.Location = new System.Drawing.Point(0, 0); - this.lblBadge.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lblBadge.Name = "lblBadge"; - this.lblBadge.Size = new System.Drawing.Size(579, 229); - this.lblBadge.TabIndex = 2; - this.lblBadge.Text = "StormChat"; - this.lblBadge.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // LogForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(579, 428); - this.Controls.Add(this.chkAutoLogin); - this.Controls.Add(this.chkRemerberPassword); - this.Controls.Add(this.btnLogin); - this.Controls.Add(this.picPhoto); - this.Controls.Add(this.txtPassword); - this.Controls.Add(this.lblBadge); - this.Controls.Add(this.txtUser); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.Margin = new System.Windows.Forms.Padding(4); - this.Name = "LogForm"; - this.Text = "登录"; - this.Load += new System.EventHandler(this.LogForm_Load); - ((System.ComponentModel.ISupportInitialize)(this.picPhoto)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - private System.Windows.Forms.TextBox txtUser; - private System.Windows.Forms.Label lblBadge; - private System.Windows.Forms.TextBox txtPassword; - private System.Windows.Forms.PictureBox picPhoto; - private System.Windows.Forms.Button btnLogin; - private System.Windows.Forms.CheckBox chkRemerberPassword; - private System.Windows.Forms.CheckBox chkAutoLogin; - } -} - diff --git a/StormChat/LogForm.cs b/StormChat/LogForm.cs deleted file mode 100644 index 185df21..0000000 --- a/StormChat/LogForm.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using Newtonsoft.Json.Linq; -using Interact; - -namespace StormChat -{ - public partial class LogForm : Form - { - internal static MainForm _mainForm; //主窗口,程序启动时设置 - public LogForm() - { - InitializeComponent(); - } - - private void LogForm_Load(object sender, EventArgs e) - { - StormClient.OnLoginDone += this.LoginDone; - StormClient.OnMessage += this.ShowMessage; - } - private void btnLogin_Click(object sender, EventArgs e) - { - if(!StormClient.Initialize()) - { - MessageBox.Show(this, "连接服务器失败!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); - return; - } - btnLogin.Enabled = false; - StormClient.QueueLogin(txtUser.Text, txtPassword.Text); - } - - //登录结果处理 - private void LoginDone(ResultHead head, User user) - { - Action f = delegate () - { - btnLogin.Enabled = true; - if (head.Error != "") - { - MessageBox.Show("登录失败:" + head.Error); - return; - } - User.Me = user; - _mainForm.Opacity = 1; - _mainForm.Show(); - this.Close(); - }; - //处理跨线程调用 - if (this.InvokeRequired) - this.Invoke(f); - else - f.Invoke(); - } - - private void ShowMessage(Interact.Message m) - { - MessageBox.Show(m.Text); - } - } -} diff --git a/StormChat/LogForm.resx b/StormChat/LogForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/StormChat/LogForm.resx +++ /dev/null @@ -1,120 +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 - - \ No newline at end of file diff --git a/StormChat/MainForm.Designer.cs b/StormChat/MainForm.Designer.cs deleted file mode 100644 index 0f5ec29..0000000 --- a/StormChat/MainForm.Designer.cs +++ /dev/null @@ -1,111 +0,0 @@ -namespace StormChat -{ - partial class MainForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.picPhoto = new System.Windows.Forms.PictureBox(); - this.lblName = new System.Windows.Forms.Label(); - this.txtMotto = new System.Windows.Forms.TextBox(); - this.listBox1 = new System.Windows.Forms.ListBox(); - ((System.ComponentModel.ISupportInitialize)(this.picPhoto)).BeginInit(); - this.SuspendLayout(); - // - // picPhoto - // - this.picPhoto.Image = global::StormChat.Properties.Resources.DefaultPhoto; - this.picPhoto.Location = new System.Drawing.Point(16, 20); - this.picPhoto.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); - this.picPhoto.Name = "picPhoto"; - this.picPhoto.Size = new System.Drawing.Size(160, 150); - this.picPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.picPhoto.TabIndex = 5; - this.picPhoto.TabStop = false; - // - // lblName - // - this.lblName.AutoSize = true; - this.lblName.Font = new System.Drawing.Font("Microsoft YaHei", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblName.Location = new System.Drawing.Point(215, 20); - this.lblName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lblName.Name = "lblName"; - this.lblName.Size = new System.Drawing.Size(170, 52); - this.lblName.TabIndex = 6; - this.lblName.Text = "Mattuy"; - // - // txtMotto - // - this.txtMotto.BackColor = System.Drawing.SystemColors.Control; - this.txtMotto.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.txtMotto.Font = new System.Drawing.Font("SimSun", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtMotto.Location = new System.Drawing.Point(215, 91); - this.txtMotto.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); - this.txtMotto.Name = "txtMotto"; - this.txtMotto.Size = new System.Drawing.Size(241, 23); - this.txtMotto.TabIndex = 7; - this.txtMotto.Text = "I am a programer."; - // - // listBox1 - // - this.listBox1.Font = new System.Drawing.Font("SimSun", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.listBox1.FormattingEnabled = true; - this.listBox1.ItemHeight = 20; - this.listBox1.Location = new System.Drawing.Point(16, 195); - this.listBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); - this.listBox1.Name = "listBox1"; - this.listBox1.Size = new System.Drawing.Size(439, 564); - this.listBox1.TabIndex = 8; - // - // MainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(472, 789); - this.Controls.Add(this.listBox1); - this.Controls.Add(this.txtMotto); - this.Controls.Add(this.lblName); - this.Controls.Add(this.picPhoto); - this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); - this.MaximizeBox = false; - this.Name = "MainForm"; - this.Opacity = 0D; - this.Text = "MainForm"; - this.Load += new System.EventHandler(this.MainForm_Load); - ((System.ComponentModel.ISupportInitialize)(this.picPhoto)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.PictureBox picPhoto; - private System.Windows.Forms.Label lblName; - private System.Windows.Forms.TextBox txtMotto; - private System.Windows.Forms.ListBox listBox1; - } -} \ No newline at end of file diff --git a/StormChat/MainForm.cs b/StormChat/MainForm.cs deleted file mode 100644 index 1044ec7..0000000 --- a/StormChat/MainForm.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace StormChat -{ - public partial class MainForm : Form - { - public MainForm() - { - InitializeComponent(); - } - - private void MainForm_Load(object sender, EventArgs e) - { - this.Visible = false; - new LogForm().Show(); - } - } -} diff --git a/StormChat/MainForm.resx b/StormChat/MainForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/StormChat/MainForm.resx +++ /dev/null @@ -1,120 +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 - - \ No newline at end of file diff --git a/StormChat/Program.cs b/StormChat/Program.cs deleted file mode 100644 index 11404d8..0000000 --- a/StormChat/Program.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace StormChat -{ - static class Program - { - /// - /// 应用程序的主入口点。 - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - LogForm._mainForm = new MainForm(); - Application.Run(LogForm._mainForm); - } - } -} diff --git a/StormChat/Properties/AssemblyInfo.cs b/StormChat/Properties/AssemblyInfo.cs deleted file mode 100644 index e7cbb4c..0000000 --- a/StormChat/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 有关程序集的一般信息由以下 -// 控制。更改这些特性值可修改 -// 与程序集关联的信息。 -[assembly: AssemblyTitle("StormChat")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Billows West")] -[assembly: AssemblyProduct("StormChat")] -[assembly: AssemblyCopyright("Copyright © Billows West 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -//将 ComVisible 设置为 false 将使此程序集中的类型 -//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, -//请将此类型的 ComVisible 特性设置为 true。 -[assembly: ComVisible(false)] - -// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("01903ae6-fdb9-4ff4-8be7-fda238ceb5ad")] - -// 程序集的版本信息由下列四个值组成: -// -// 主版本 -// 次版本 -// 生成号 -// 修订号 -// -//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, -// 方法是按如下所示使用“*”: : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.0.0")] -[assembly: AssemblyFileVersion("0.1.0.0")] diff --git a/StormChat/Properties/Resources.Designer.cs b/StormChat/Properties/Resources.Designer.cs deleted file mode 100644 index d3ffa6e..0000000 --- a/StormChat/Properties/Resources.Designer.cs +++ /dev/null @@ -1,83 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace StormChat.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", "15.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("StormChat.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; - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap DefaultPhoto { - get { - object obj = ResourceManager.GetObject("DefaultPhoto", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap LogFormBackground { - get { - object obj = ResourceManager.GetObject("LogFormBackground", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - } -} diff --git a/StormChat/Properties/Resources.resx b/StormChat/Properties/Resources.resx deleted file mode 100644 index 053d988..0000000 --- a/StormChat/Properties/Resources.resx +++ /dev/null @@ -1,127 +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 - - - - ..\pic\DefaultPhoto.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\pic\logFormBackground.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - \ No newline at end of file diff --git a/StormChat/Properties/Settings.Designer.cs b/StormChat/Properties/Settings.Designer.cs deleted file mode 100644 index 4f85e24..0000000 --- a/StormChat/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace StormChat.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.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/StormChat/Properties/Settings.settings b/StormChat/Properties/Settings.settings deleted file mode 100644 index 3964565..0000000 --- a/StormChat/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/StormChat/Properties/app.manifest b/StormChat/Properties/app.manifest deleted file mode 100644 index 29d0cc2..0000000 --- a/StormChat/Properties/app.manifest +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - \ No newline at end of file diff --git a/StormChat/StormChat.csproj b/StormChat/StormChat.csproj deleted file mode 100644 index 8931dc1..0000000 --- a/StormChat/StormChat.csproj +++ /dev/null @@ -1,129 +0,0 @@ - - - - - Debug - AnyCPU - {01903AE6-FDB9-4FF4-8BE7-FDA238CEB5AD} - WinExe - Properties - StormChat - StormChat - v4.0 - 512 - true - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - LocalIntranet - - - true - - - Properties\app.manifest - - - - ..\Interact\Newtonsoft.Json.dll - - - - - - - - - - - - - - - Form - - - LogForm.cs - - - Form - - - MainForm.cs - - - - - LogForm.cs - - - MainForm.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - - - - - - - - - - - {cef054af-95b7-4b88-934e-02705feea554} - Interact - - - - - \ No newline at end of file diff --git a/StormChat/pic/DefaultPhoto.jpg b/StormChat/pic/DefaultPhoto.jpg deleted file mode 100644 index 7a9eab1..0000000 Binary files a/StormChat/pic/DefaultPhoto.jpg and /dev/null differ diff --git a/StormChat/pic/LogFormBackground.jpg b/StormChat/pic/LogFormBackground.jpg deleted file mode 100644 index ea8dcfe..0000000 Binary files a/StormChat/pic/LogFormBackground.jpg and /dev/null differ diff --git a/StormChatWPF/App.config b/StormChatWPF/App.config index 731f6de..74ade9d 100644 --- a/StormChatWPF/App.config +++ b/StormChatWPF/App.config @@ -1,6 +1,6 @@ - + - + - \ No newline at end of file + diff --git a/StormChatWPF/Properties/Settings.Designer.cs b/StormChatWPF/Properties/Settings.Designer.cs index bafedfd..c91016e 100644 --- a/StormChatWPF/Properties/Settings.Designer.cs +++ b/StormChatWPF/Properties/Settings.Designer.cs @@ -8,21 +8,17 @@ // //------------------------------------------------------------------------------ -namespace StormChatWPF.Properties -{ - - +namespace StormChatWPF.Properties { + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.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 - { + + public static Settings Default { + get { return defaultInstance; } } diff --git a/StormChatWPF/StormChatWPF.csproj b/StormChatWPF/StormChatWPF.csproj index f3ff667..464c36e 100644 --- a/StormChatWPF/StormChatWPF.csproj +++ b/StormChatWPF/StormChatWPF.csproj @@ -8,12 +8,13 @@ WinExe StormChatWPF StormChatWPF - v4.6.1 + v4.0 512 {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 true true + AnyCPU