diff --git a/shadowsocks-csharp/View/AboutForm.Designer.cs b/shadowsocks-csharp/View/AboutForm.Designer.cs
new file mode 100644
index 00000000..498d31d4
--- /dev/null
+++ b/shadowsocks-csharp/View/AboutForm.Designer.cs
@@ -0,0 +1,104 @@
+namespace Shadowsocks.View
+{
+ partial class AboutForm
+ {
+ ///
+ /// 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.titleLabel = new System.Windows.Forms.Label();
+ this.versionLabel = new System.Windows.Forms.Label();
+ this.authorLabel = new System.Windows.Forms.Label();
+ this.githubLabel = new System.Windows.Forms.LinkLabel();
+ this.SuspendLayout();
+ //
+ // titleLabel
+ //
+ this.titleLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.titleLabel.Location = new System.Drawing.Point(12, 40);
+ this.titleLabel.Name = "titleLabel";
+ this.titleLabel.Size = new System.Drawing.Size(260, 23);
+ this.titleLabel.TabIndex = 0;
+ this.titleLabel.Text = "Shadowsocks for Windows";
+ this.titleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // versionLabel
+ //
+ this.versionLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.versionLabel.Location = new System.Drawing.Point(12, 84);
+ this.versionLabel.Name = "versionLabel";
+ this.versionLabel.Size = new System.Drawing.Size(260, 23);
+ this.versionLabel.TabIndex = 0;
+ this.versionLabel.Text = "Version: 2.0.4.0";
+ this.versionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // authorLabel
+ //
+ this.authorLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.authorLabel.Location = new System.Drawing.Point(12, 139);
+ this.authorLabel.Name = "authorLabel";
+ this.authorLabel.Size = new System.Drawing.Size(260, 23);
+ this.authorLabel.TabIndex = 0;
+ this.authorLabel.Text = "By: clowwindy";
+ this.authorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // githubLabel
+ //
+ this.githubLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.githubLabel.Location = new System.Drawing.Point(13, 201);
+ this.githubLabel.Name = "githubLabel";
+ this.githubLabel.Size = new System.Drawing.Size(259, 23);
+ this.githubLabel.TabIndex = 1;
+ this.githubLabel.TabStop = true;
+ this.githubLabel.Text = "GitHub";
+ this.githubLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.githubLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.githubLabel_LinkClicked);
+ //
+ // AboutForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(284, 261);
+ this.Controls.Add(this.githubLabel);
+ this.Controls.Add(this.authorLabel);
+ this.Controls.Add(this.versionLabel);
+ this.Controls.Add(this.titleLabel);
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "AboutForm";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "About";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label titleLabel;
+ private System.Windows.Forms.Label versionLabel;
+ private System.Windows.Forms.Label authorLabel;
+ private System.Windows.Forms.LinkLabel githubLabel;
+ }
+}
\ No newline at end of file
diff --git a/shadowsocks-csharp/View/AboutForm.cs b/shadowsocks-csharp/View/AboutForm.cs
new file mode 100644
index 00000000..0b182cb5
--- /dev/null
+++ b/shadowsocks-csharp/View/AboutForm.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Shadowsocks.View
+{
+ public partial class AboutForm : Form
+ {
+ public AboutForm()
+ {
+ InitializeComponent();
+ }
+
+ private void githubLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ {
+ string url = "https://github.com/clowwindy/shadowsocks-csharp";
+ System.Diagnostics.Process.Start(url);
+ }
+ }
+}
diff --git a/shadowsocks-csharp/View/AboutForm.resx b/shadowsocks-csharp/View/AboutForm.resx
new file mode 100644
index 00000000..7080a7d1
--- /dev/null
+++ b/shadowsocks-csharp/View/AboutForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/shadowsocks-csharp/View/ConfigForm.cs b/shadowsocks-csharp/View/ConfigForm.cs
index 0502411a..b44f65ea 100755
--- a/shadowsocks-csharp/View/ConfigForm.cs
+++ b/shadowsocks-csharp/View/ConfigForm.cs
@@ -13,6 +13,7 @@ namespace Shadowsocks.View
public partial class ConfigForm : Form
{
private ShadowsocksController controller;
+ private AboutForm aboutForm;
// this is a copy of configuration that we are working on
private Configuration _modifiedConfiguration;
@@ -299,7 +300,9 @@ namespace Shadowsocks.View
private void AboutItem_Click(object sender, EventArgs e)
{
- Process.Start("https://github.com/clowwindy/shadowsocks-csharp");
+ aboutForm = new AboutForm();
+ aboutForm.Show();
+ //Process.Start("https://github.com/clowwindy/shadowsocks-csharp");
}
private void notifyIcon1_DoubleClick(object sender, EventArgs e)
diff --git a/shadowsocks-csharp/shadowsocks-csharp.csproj b/shadowsocks-csharp/shadowsocks-csharp.csproj
index ab31982a..5f486f5c 100755
--- a/shadowsocks-csharp/shadowsocks-csharp.csproj
+++ b/shadowsocks-csharp/shadowsocks-csharp.csproj
@@ -63,6 +63,7 @@
+
@@ -78,6 +79,12 @@
+
+ Form
+
+
+ AboutForm.cs
+
Form
@@ -96,6 +103,9 @@
QRCodeForm.cs
+
+ AboutForm.cs
+
ConfigForm.cs
Designer