From c0b7a8c33eeecb84c7450ac2726f847557236089 Mon Sep 17 00:00:00 2001
From: 2dust <31833384+2dust@users.noreply.github.com>
Date: Sat, 5 Mar 2022 07:29:58 +0800
Subject: [PATCH] clear
---
v2rayN/v2rayN/Forms/QRCodeForm.Designer.cs | 94 ---
v2rayN/v2rayN/Forms/QRCodeForm.cs | 51 --
v2rayN/v2rayN/Forms/QRCodeForm.resx | 120 ---
.../RoutingRuleQuicklyAddForm.Designer.cs | 170 ----
.../v2rayN/Forms/RoutingRuleQuicklyAddForm.cs | 73 --
.../Forms/RoutingRuleQuicklyAddForm.resx | 462 -----------
.../RoutingRuleQuicklyAddForm.zh-Hans.resx | 132 ----
.../RoutingSettingDetailsForm.Designer.cs | 234 ------
.../v2rayN/Forms/RoutingSettingDetailsForm.cs | 131 ----
.../Forms/RoutingSettingDetailsForm.resx | 723 ------------------
.../RoutingSettingDetailsForm.zh-Hans.resx | 145 ----
.../Forms/RoutingSubSettingForm.Designer.cs | 106 ---
v2rayN/v2rayN/Forms/RoutingSubSettingForm.cs | 61 --
.../v2rayN/Forms/RoutingSubSettingForm.resx | 300 --------
.../Forms/RoutingSubSettingForm.zh-Hans.resx | 133 ----
15 files changed, 2935 deletions(-)
delete mode 100644 v2rayN/v2rayN/Forms/QRCodeForm.Designer.cs
delete mode 100644 v2rayN/v2rayN/Forms/QRCodeForm.cs
delete mode 100644 v2rayN/v2rayN/Forms/QRCodeForm.resx
delete mode 100644 v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.Designer.cs
delete mode 100644 v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.cs
delete mode 100644 v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.resx
delete mode 100644 v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.zh-Hans.resx
delete mode 100644 v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.Designer.cs
delete mode 100644 v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.cs
delete mode 100644 v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.resx
delete mode 100644 v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.zh-Hans.resx
delete mode 100644 v2rayN/v2rayN/Forms/RoutingSubSettingForm.Designer.cs
delete mode 100644 v2rayN/v2rayN/Forms/RoutingSubSettingForm.cs
delete mode 100644 v2rayN/v2rayN/Forms/RoutingSubSettingForm.resx
delete mode 100644 v2rayN/v2rayN/Forms/RoutingSubSettingForm.zh-Hans.resx
diff --git a/v2rayN/v2rayN/Forms/QRCodeForm.Designer.cs b/v2rayN/v2rayN/Forms/QRCodeForm.Designer.cs
deleted file mode 100644
index 733adb47..00000000
--- a/v2rayN/v2rayN/Forms/QRCodeForm.Designer.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-namespace v2rayN.Forms
-{
- partial class QRCodeForm
- {
- ///
- /// 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.picQRCode = new System.Windows.Forms.PictureBox();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.txtUrl = new System.Windows.Forms.TextBox();
- ((System.ComponentModel.ISupportInitialize)(this.picQRCode)).BeginInit();
- this.groupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // picQRCode
- //
- this.picQRCode.Dock = System.Windows.Forms.DockStyle.Fill;
- this.picQRCode.Location = new System.Drawing.Point(0, 0);
- this.picQRCode.Name = "picQRCode";
- this.picQRCode.Size = new System.Drawing.Size(482, 483);
- this.picQRCode.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.picQRCode.TabIndex = 23;
- this.picQRCode.TabStop = false;
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.txtUrl);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.groupBox1.Location = new System.Drawing.Point(0, 483);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(482, 90);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "URL";
- //
- // txtUrl
- //
- this.txtUrl.Dock = System.Windows.Forms.DockStyle.Fill;
- this.txtUrl.Location = new System.Drawing.Point(3, 17);
- this.txtUrl.Multiline = true;
- this.txtUrl.Name = "txtUrl";
- this.txtUrl.ReadOnly = true;
- this.txtUrl.Size = new System.Drawing.Size(476, 70);
- this.txtUrl.TabIndex = 0;
- //
- // QRCodeForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(482, 573);
- this.Controls.Add(this.picQRCode);
- this.Controls.Add(this.groupBox1);
- this.Name = "QRCodeForm";
- this.Text = "服务器配置二维码和URL";
- this.Load += new System.EventHandler(this.QRCodeForm_Load);
- this.Shown += new System.EventHandler(this.QRCodeForm_Shown);
- ((System.ComponentModel.ISupportInitialize)(this.picQRCode)).EndInit();
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.TextBox txtUrl;
- private System.Windows.Forms.PictureBox picQRCode;
-
- }
-}
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/QRCodeForm.cs b/v2rayN/v2rayN/Forms/QRCodeForm.cs
deleted file mode 100644
index d170b173..00000000
--- a/v2rayN/v2rayN/Forms/QRCodeForm.cs
+++ /dev/null
@@ -1,51 +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.Windows.Forms;
-using v2rayN.Handler;
-using v2rayN.Mode;
-
-namespace v2rayN.Forms
-{
- public partial class QRCodeForm : BaseForm
- {
- public int Index { get; set; }
-
- public QRCodeForm()
- {
- InitializeComponent();
- }
-
- private void QRCodeForm_Load(object sender, EventArgs e)
- {
- txtUrl.MouseUp += txtUrl_MouseUp;
- }
-
- void txtUrl_MouseUp(object sender, MouseEventArgs e)
- {
- txtUrl.SelectAll();
- }
-
- private void QRCodeForm_Shown(object sender, EventArgs e)
- {
- if (Index >= 0)
- {
- VmessQRCode vmessQRCode = null;
- if (ConfigHandler.GetVmessQRCode(config, Index, ref vmessQRCode) != 0)
- {
- return;
- }
- string url = Utils.ToJson(vmessQRCode);
- url = Utils.Base64Encode(url);
- url = string.Format("{0}{1}", Global.vmessProtocol, url);
- picQRCode.Image = QRCodeHelper.GetQRCode(url);
- txtUrl.Text = url;
- }
- }
-
- }
-}
diff --git a/v2rayN/v2rayN/Forms/QRCodeForm.resx b/v2rayN/v2rayN/Forms/QRCodeForm.resx
deleted file mode 100644
index 1af7de15..00000000
--- a/v2rayN/v2rayN/Forms/QRCodeForm.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/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.Designer.cs b/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.Designer.cs
deleted file mode 100644
index b187f725..00000000
--- a/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.Designer.cs
+++ /dev/null
@@ -1,170 +0,0 @@
-namespace v2rayN.Forms
-{
- partial class RoutingRuleQuicklyAddForm
- {
- ///
- /// 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()
- {
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RoutingRuleQuicklyAddForm));
- this.panel1 = new System.Windows.Forms.Panel();
- this.panel3 = new System.Windows.Forms.Panel();
- this.label4 = new System.Windows.Forms.Label();
- this.cmbOutboundTag = new System.Windows.Forms.ComboBox();
- this.panel4 = new System.Windows.Forms.Panel();
- this.btnClose = new System.Windows.Forms.Button();
- this.btnOK = new System.Windows.Forms.Button();
- this.panel2 = new System.Windows.Forms.Panel();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.txtIP = new System.Windows.Forms.TextBox();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.txtDomain = new System.Windows.Forms.TextBox();
- this.panel3.SuspendLayout();
- this.panel4.SuspendLayout();
- this.panel2.SuspendLayout();
- this.groupBox2.SuspendLayout();
- this.groupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // panel1
- //
- resources.ApplyResources(this.panel1, "panel1");
- this.panel1.Name = "panel1";
- //
- // panel3
- //
- resources.ApplyResources(this.panel3, "panel3");
- this.panel3.Controls.Add(this.label4);
- this.panel3.Controls.Add(this.cmbOutboundTag);
- this.panel3.Name = "panel3";
- //
- // label4
- //
- resources.ApplyResources(this.label4, "label4");
- this.label4.Name = "label4";
- //
- // cmbOutboundTag
- //
- resources.ApplyResources(this.cmbOutboundTag, "cmbOutboundTag");
- this.cmbOutboundTag.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cmbOutboundTag.FormattingEnabled = true;
- this.cmbOutboundTag.Items.AddRange(new object[] {
- resources.GetString("cmbOutboundTag.Items"),
- resources.GetString("cmbOutboundTag.Items1"),
- resources.GetString("cmbOutboundTag.Items2")});
- this.cmbOutboundTag.Name = "cmbOutboundTag";
- //
- // panel4
- //
- resources.ApplyResources(this.panel4, "panel4");
- this.panel4.Controls.Add(this.btnClose);
- this.panel4.Controls.Add(this.btnOK);
- this.panel4.Name = "panel4";
- //
- // btnClose
- //
- resources.ApplyResources(this.btnClose, "btnClose");
- this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.btnClose.Name = "btnClose";
- this.btnClose.UseVisualStyleBackColor = true;
- this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
- //
- // btnOK
- //
- resources.ApplyResources(this.btnOK, "btnOK");
- this.btnOK.Name = "btnOK";
- this.btnOK.UseVisualStyleBackColor = true;
- this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
- //
- // panel2
- //
- resources.ApplyResources(this.panel2, "panel2");
- this.panel2.Controls.Add(this.groupBox2);
- this.panel2.Controls.Add(this.groupBox1);
- this.panel2.Name = "panel2";
- //
- // groupBox2
- //
- resources.ApplyResources(this.groupBox2, "groupBox2");
- this.groupBox2.Controls.Add(this.txtIP);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.TabStop = false;
- //
- // txtIP
- //
- resources.ApplyResources(this.txtIP, "txtIP");
- this.txtIP.Name = "txtIP";
- //
- // groupBox1
- //
- resources.ApplyResources(this.groupBox1, "groupBox1");
- this.groupBox1.Controls.Add(this.txtDomain);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.TabStop = false;
- //
- // txtDomain
- //
- resources.ApplyResources(this.txtDomain, "txtDomain");
- this.txtDomain.Name = "txtDomain";
- //
- // RoutingRuleQuicklyAddForm
- //
- resources.ApplyResources(this, "$this");
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.CancelButton = this.btnClose;
- this.Controls.Add(this.panel2);
- this.Controls.Add(this.panel4);
- this.Controls.Add(this.panel3);
- this.Controls.Add(this.panel1);
- this.Name = "RoutingRuleQuicklyAddForm";
- this.Load += new System.EventHandler(this.RoutingRuleQuicklyAddForm_Load);
- this.panel3.ResumeLayout(false);
- this.panel3.PerformLayout();
- this.panel4.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
- this.groupBox2.ResumeLayout(false);
- this.groupBox2.PerformLayout();
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.ComboBox cmbOutboundTag;
- private System.Windows.Forms.Panel panel4;
- private System.Windows.Forms.Button btnClose;
- private System.Windows.Forms.Button btnOK;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.TextBox txtDomain;
- private System.Windows.Forms.GroupBox groupBox2;
- private System.Windows.Forms.TextBox txtIP;
- }
-}
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.cs b/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.cs
deleted file mode 100644
index 51f6d87b..00000000
--- a/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-using System;
-using System.Windows.Forms;
-using v2rayN.Handler;
-using v2rayN.Mode;
-
-namespace v2rayN.Forms
-{
- public partial class RoutingRuleQuicklyAddForm : BaseForm
- {
- public string domain
- {
- get; set;
- }
- private RulesItem rulesItem;
-
- public RoutingRuleQuicklyAddForm()
- {
- InitializeComponent();
- }
-
- private void RoutingRuleQuicklyAddForm_Load(object sender, EventArgs e)
- {
- rulesItem = new RulesItem();
- ClearBind();
- }
-
- private void EndBindingData()
- {
- if (rulesItem != null)
- {
- rulesItem.outboundTag = cmbOutboundTag.Text;
- rulesItem.domain = Utils.String2List(txtDomain.Text);
- rulesItem.ip = Utils.String2List(txtIP.Text);
- }
- }
-
- private void ClearBind()
- {
- cmbOutboundTag.Text = Global.agentTag;
- txtDomain.Text = domain;
- }
- private void btnOK_Click(object sender, EventArgs e)
- {
- EndBindingData();
- var hasRule = false;
- if (rulesItem.domain != null && rulesItem.domain.Count > 0)
- {
- hasRule = true;
- }
- if (rulesItem.ip != null && rulesItem.ip.Count > 0)
- {
- hasRule = true;
- }
- if (!hasRule)
- {
- return;
- }
- if (ConfigHandler.InsertRoutingRuleItem(ref config, rulesItem) == 0)
- {
- this.DialogResult = DialogResult.OK;
- }
- else
- {
- UI.ShowWarning(UIRes.I18N("OperationFailed"));
- }
- }
-
- private void btnClose_Click(object sender, EventArgs e)
- {
- this.DialogResult = DialogResult.Cancel;
- }
- }
-}
diff --git a/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.resx b/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.resx
deleted file mode 100644
index b081d36d..00000000
--- a/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.resx
+++ /dev/null
@@ -1,462 +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
-
-
- txtIP
-
-
-
- Fill
-
-
-
- 8
-
-
-
- 119, 20
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Fill
-
-
- 3, 17
-
-
- 220, 207
-
-
- System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 10
-
-
- btnOK
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- RoutingRuleQuicklyAddForm
-
-
- $this
-
-
- 0, 288
-
-
- Bottom
-
-
- Fill
-
-
- 32
-
-
- panel4
-
-
- proxy
-
-
- Left
-
-
- 24
-
-
- 75, 23
-
-
- 6, 12
-
-
- 506, 10
-
-
- 7
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 11
-
-
- panel1
-
-
- Domain
-
-
- groupBox1
-
-
- 0, 10
-
-
- System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 31
-
-
- 1
-
-
- 506, 51
-
-
- Fill
-
-
- txtDomain
-
-
- panel3
-
-
- NoControl
-
-
- 5
-
-
- Top
-
-
- panel4
-
-
- IP
-
-
- 280, 0
-
-
- 75, 23
-
-
- 3, 17
-
-
- label4
-
-
- outboundTag
-
-
- btnClose
-
-
- block
-
-
- direct
-
-
- 1
-
-
- 2
-
-
- 0
-
-
- 305, 25
-
-
- panel3
-
-
- Top
-
-
- 0, 0
-
-
- 506, 227
-
-
- True
-
-
- 3
-
-
- 280, 227
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 4
-
-
- 3
-
-
- NoControl
-
-
- &OK
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- cmbOutboundTag
-
-
- System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 506, 60
-
-
- System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 0
-
-
- System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- &Cancel
-
-
- 226, 227
-
-
- 107, 16
-
-
- RoutingRuleQuicklyAddForm
-
-
- NoControl
-
-
- 0
-
-
- 1
-
-
- True
-
-
- groupBox2
-
-
- 19, 20
-
-
- $this
-
-
- 71, 12
-
-
- panel2
-
-
- groupBox2
-
-
- 4
-
-
- 0, 0
-
-
- panel4
-
-
- $this
-
-
- groupBox1
-
-
- panel2
-
-
- 0, 61
-
-
- 0
-
-
- 1
-
-
- 274, 207
-
-
- 506, 348
-
-
- 25
-
-
- v2rayN.Forms.BaseForm, v2rayN, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
-
-
- 0
-
-
- panel2
-
-
- $this
-
-
- 398, 25
-
-
- True
-
-
- 0
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- True
-
-
- zh-Hans
-
-
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.zh-Hans.resx b/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.zh-Hans.resx
deleted file mode 100644
index ee735361..00000000
--- a/v2rayN/v2rayN/Forms/RoutingRuleQuicklyAddForm.zh-Hans.resx
+++ /dev/null
@@ -1,132 +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
-
-
- OutboundTag
-
-
- 取消(&C)
-
-
- 确定(&O)
-
-
- 快速添加路由规则
-
-
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.Designer.cs b/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.Designer.cs
deleted file mode 100644
index 43d2de45..00000000
--- a/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.Designer.cs
+++ /dev/null
@@ -1,234 +0,0 @@
-namespace v2rayN.Forms
-{
- partial class RoutingSettingDetailsForm
- {
- ///
- /// 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()
- {
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RoutingSettingDetailsForm));
- this.panel1 = new System.Windows.Forms.Panel();
- this.panel3 = new System.Windows.Forms.Panel();
- this.clbProtocol = new System.Windows.Forms.CheckedListBox();
- this.label3 = new System.Windows.Forms.Label();
- this.txtPort = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.labRoutingTips = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.cmbOutboundTag = new System.Windows.Forms.ComboBox();
- this.txtRemarks = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.panel4 = new System.Windows.Forms.Panel();
- this.btnClose = new System.Windows.Forms.Button();
- this.btnOK = new System.Windows.Forms.Button();
- this.panel2 = new System.Windows.Forms.Panel();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.txtIP = new System.Windows.Forms.TextBox();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.txtDomain = new System.Windows.Forms.TextBox();
- this.panel3.SuspendLayout();
- this.panel4.SuspendLayout();
- this.panel2.SuspendLayout();
- this.groupBox2.SuspendLayout();
- this.groupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // panel1
- //
- resources.ApplyResources(this.panel1, "panel1");
- this.panel1.Name = "panel1";
- //
- // panel3
- //
- this.panel3.Controls.Add(this.clbProtocol);
- this.panel3.Controls.Add(this.label3);
- this.panel3.Controls.Add(this.txtPort);
- this.panel3.Controls.Add(this.label1);
- this.panel3.Controls.Add(this.labRoutingTips);
- this.panel3.Controls.Add(this.label4);
- this.panel3.Controls.Add(this.cmbOutboundTag);
- this.panel3.Controls.Add(this.txtRemarks);
- this.panel3.Controls.Add(this.label2);
- resources.ApplyResources(this.panel3, "panel3");
- this.panel3.Name = "panel3";
- //
- // clbProtocol
- //
- this.clbProtocol.CheckOnClick = true;
- resources.ApplyResources(this.clbProtocol, "clbProtocol");
- this.clbProtocol.FormattingEnabled = true;
- this.clbProtocol.Items.AddRange(new object[] {
- resources.GetString("clbProtocol.Items"),
- resources.GetString("clbProtocol.Items1"),
- resources.GetString("clbProtocol.Items2")});
- this.clbProtocol.MultiColumn = true;
- this.clbProtocol.Name = "clbProtocol";
- //
- // label3
- //
- resources.ApplyResources(this.label3, "label3");
- this.label3.Name = "label3";
- //
- // txtPort
- //
- resources.ApplyResources(this.txtPort, "txtPort");
- this.txtPort.Name = "txtPort";
- //
- // label1
- //
- resources.ApplyResources(this.label1, "label1");
- this.label1.Name = "label1";
- //
- // labRoutingTips
- //
- this.labRoutingTips.ForeColor = System.Drawing.Color.Brown;
- resources.ApplyResources(this.labRoutingTips, "labRoutingTips");
- this.labRoutingTips.Name = "labRoutingTips";
- //
- // label4
- //
- resources.ApplyResources(this.label4, "label4");
- this.label4.Name = "label4";
- //
- // cmbOutboundTag
- //
- this.cmbOutboundTag.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.cmbOutboundTag.FormattingEnabled = true;
- this.cmbOutboundTag.Items.AddRange(new object[] {
- resources.GetString("cmbOutboundTag.Items"),
- resources.GetString("cmbOutboundTag.Items1"),
- resources.GetString("cmbOutboundTag.Items2")});
- resources.ApplyResources(this.cmbOutboundTag, "cmbOutboundTag");
- this.cmbOutboundTag.Name = "cmbOutboundTag";
- //
- // txtRemarks
- //
- resources.ApplyResources(this.txtRemarks, "txtRemarks");
- this.txtRemarks.Name = "txtRemarks";
- //
- // label2
- //
- resources.ApplyResources(this.label2, "label2");
- this.label2.Name = "label2";
- //
- // panel4
- //
- this.panel4.Controls.Add(this.btnClose);
- this.panel4.Controls.Add(this.btnOK);
- resources.ApplyResources(this.panel4, "panel4");
- this.panel4.Name = "panel4";
- //
- // btnClose
- //
- this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- resources.ApplyResources(this.btnClose, "btnClose");
- this.btnClose.Name = "btnClose";
- this.btnClose.UseVisualStyleBackColor = true;
- this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
- //
- // btnOK
- //
- resources.ApplyResources(this.btnOK, "btnOK");
- this.btnOK.Name = "btnOK";
- this.btnOK.UseVisualStyleBackColor = true;
- this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
- //
- // panel2
- //
- this.panel2.Controls.Add(this.groupBox2);
- this.panel2.Controls.Add(this.groupBox1);
- resources.ApplyResources(this.panel2, "panel2");
- this.panel2.Name = "panel2";
- //
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.txtIP);
- resources.ApplyResources(this.groupBox2, "groupBox2");
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.TabStop = false;
- //
- // txtIP
- //
- resources.ApplyResources(this.txtIP, "txtIP");
- this.txtIP.Name = "txtIP";
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.txtDomain);
- resources.ApplyResources(this.groupBox1, "groupBox1");
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.TabStop = false;
- //
- // txtDomain
- //
- resources.ApplyResources(this.txtDomain, "txtDomain");
- this.txtDomain.Name = "txtDomain";
- //
- // RoutingSettingDetailsForm
- //
- resources.ApplyResources(this, "$this");
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.CancelButton = this.btnClose;
- this.Controls.Add(this.panel2);
- this.Controls.Add(this.panel4);
- this.Controls.Add(this.panel3);
- this.Controls.Add(this.panel1);
- this.Name = "RoutingSettingDetailsForm";
- this.Load += new System.EventHandler(this.RoutingSettingDetailsForm_Load);
- this.panel3.ResumeLayout(false);
- this.panel3.PerformLayout();
- this.panel4.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
- this.groupBox2.ResumeLayout(false);
- this.groupBox2.PerformLayout();
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.ComboBox cmbOutboundTag;
- private System.Windows.Forms.TextBox txtRemarks;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Panel panel4;
- private System.Windows.Forms.Button btnClose;
- private System.Windows.Forms.Button btnOK;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.TextBox txtDomain;
- private System.Windows.Forms.GroupBox groupBox2;
- private System.Windows.Forms.TextBox txtIP;
- private System.Windows.Forms.Label labRoutingTips;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.TextBox txtPort;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.CheckedListBox clbProtocol;
- }
-}
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.cs b/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.cs
deleted file mode 100644
index 65fe6a8f..00000000
--- a/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.cs
+++ /dev/null
@@ -1,131 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Windows.Forms;
-using v2rayN.Base;
-using v2rayN.Handler;
-using v2rayN.Mode;
-
-namespace v2rayN.Forms
-{
- public partial class RoutingSettingDetailsForm : BaseForm
- {
- public int EditIndex
- {
- get; set;
- }
- protected RulesItem routingItem = null;
-
- public RoutingSettingDetailsForm()
- {
- InitializeComponent();
- }
-
- private void RoutingSettingDetailsForm_Load(object sender, EventArgs e)
- {
- if (EditIndex >= 0)
- {
- routingItem = config.rules[EditIndex];
- BindingData();
- }
- else
- {
- routingItem = new RulesItem();
- ClearBind();
- }
- }
-
- private void EndBindingData()
- {
- if (routingItem != null)
- {
- routingItem.remarks = txtRemarks.Text.TrimEx();
- routingItem.port = txtPort.Text.TrimEx();
- routingItem.outboundTag = cmbOutboundTag.Text;
- routingItem.domain = Utils.String2List(txtDomain.Text);
- routingItem.ip = Utils.String2List(txtIP.Text);
-
- var protocol = new List();
- for (int i = 0; i < clbProtocol.Items.Count; i++)
- {
- if (clbProtocol.GetItemChecked(i))
- {
- protocol.Add(clbProtocol.Items[i].ToString());
- }
- }
- routingItem.protocol = protocol;
- }
- }
- private void BindingData()
- {
- if (routingItem != null)
- {
- txtRemarks.Text = routingItem.remarks ?? string.Empty;
- txtPort.Text = routingItem.port ?? string.Empty;
- cmbOutboundTag.Text = routingItem.outboundTag;
- txtDomain.Text = Utils.List2String(routingItem.domain, true);
- txtIP.Text = Utils.List2String(routingItem.ip, true);
-
- if (routingItem.protocol != null)
- {
- for (int i = 0; i < clbProtocol.Items.Count; i++)
- {
- if (routingItem.protocol.Contains(clbProtocol.Items[i].ToString()))
- {
- clbProtocol.SetItemChecked(i, true);
- }
- }
- }
- }
- }
- private void ClearBind()
- {
- txtRemarks.Text = string.Empty;
- txtPort.Text = string.Empty;
- cmbOutboundTag.Text = Global.agentTag;
- txtDomain.Text = string.Empty;
- txtIP.Text = string.Empty;
- }
- private void btnOK_Click(object sender, EventArgs e)
- {
- EndBindingData();
- var hasRule = false;
- if (routingItem.domain != null && routingItem.domain.Count > 0)
- {
- hasRule = true;
- }
- if (routingItem.ip != null && routingItem.ip.Count > 0)
- {
- hasRule = true;
- }
- if (routingItem.protocol != null && routingItem.protocol.Count > 0)
- {
- hasRule = true;
- }
- if (!Utils.IsNullOrEmpty(routingItem.port))
- {
- hasRule = true;
- }
- if (!hasRule)
- {
- UI.ShowWarning(string.Format(UIRes.I18N("RoutingRuleDetailRequiredTips"), "Port/Protocol/Domain/IP"));
- return;
- }
-
- if (ConfigHandler.AddRoutingRule(ref config, routingItem, EditIndex) == 0)
- {
- this.DialogResult = DialogResult.OK;
- }
- else
- {
- UI.ShowWarning(UIRes.I18N("OperationFailed"));
- }
-
- this.DialogResult = DialogResult.OK;
- }
-
- private void btnClose_Click(object sender, EventArgs e)
- {
- this.DialogResult = DialogResult.Cancel;
- }
- }
-}
diff --git a/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.resx b/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.resx
deleted file mode 100644
index d9472064..00000000
--- a/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.resx
+++ /dev/null
@@ -1,723 +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
-
-
-
- Top
-
-
-
- 0, 0
-
-
- 742, 10
-
-
-
- 7
-
-
- panel1
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- $this
-
-
- 3
-
-
- 80
-
-
- http
-
-
- tls
-
-
- bittorrent
-
-
- 347, 43
-
-
- 245, 20
-
-
- 39
-
-
- clbProtocol
-
-
- System.Windows.Forms.CheckedListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 0
-
-
- True
-
-
- NoControl
-
-
- 274, 47
-
-
- 53, 12
-
-
- 36
-
-
- Protocol
-
-
- label3
-
-
- System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 1
-
-
- 84, 43
-
-
- 166, 21
-
-
- 35
-
-
- txtPort
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 2
-
-
- True
-
-
- NoControl
-
-
- 19, 47
-
-
- 29, 12
-
-
- 34
-
-
- Port
-
-
- label1
-
-
- System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 3
-
-
- NoControl
-
-
- 19, 82
-
-
- 598, 16
-
-
- 33
-
-
- *Set the rules, separated by commas (,); The comma in the regular is replaced by <COMMA>
-
-
- labRoutingTips
-
-
- System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 4
-
-
- True
-
-
- NoControl
-
-
- 274, 20
-
-
- 47, 12
-
-
- 32
-
-
- Out Tag
-
-
- label4
-
-
- System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 5
-
-
- proxy
-
-
- direct
-
-
- block
-
-
- 347, 16
-
-
- 119, 20
-
-
- 31
-
-
- cmbOutboundTag
-
-
- System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 6
-
-
- 84, 16
-
-
- 166, 21
-
-
- 30
-
-
- txtRemarks
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 7
-
-
- True
-
-
- NoControl
-
-
- 19, 20
-
-
- 47, 12
-
-
- 29
-
-
- Remarks
-
-
- label2
-
-
- System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel3
-
-
- 8
-
-
- Top
-
-
- 0, 10
-
-
- 742, 111
-
-
- 8
-
-
- panel3
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- $this
-
-
- 2
-
-
- btnClose
-
-
- System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel4
-
-
- 0
-
-
- btnOK
-
-
- System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel4
-
-
- 1
-
-
- Bottom
-
-
- 0, 516
-
-
- 742, 60
-
-
- 10
-
-
- panel4
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- $this
-
-
- 1
-
-
- NoControl
-
-
- 504, 15
-
-
- 75, 23
-
-
- 4
-
-
- &Cancel
-
-
- btnClose
-
-
- System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel4
-
-
- 0
-
-
- NoControl
-
-
- 411, 15
-
-
- 75, 23
-
-
- 5
-
-
- &OK
-
-
- btnOK
-
-
- System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel4
-
-
- 1
-
-
- groupBox2
-
-
- System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel2
-
-
- 0
-
-
- groupBox1
-
-
- System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel2
-
-
- 1
-
-
- Fill
-
-
- 0, 121
-
-
- 742, 395
-
-
- 11
-
-
- panel2
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- $this
-
-
- 0
-
-
- txtIP
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- groupBox2
-
-
- 0
-
-
- Fill
-
-
- 392, 0
-
-
- 350, 395
-
-
- 4
-
-
- IP
-
-
- groupBox2
-
-
- System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel2
-
-
- 0
-
-
- Fill
-
-
- 3, 17
-
-
- True
-
-
- 344, 375
-
-
- 25
-
-
- txtIP
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- groupBox2
-
-
- 0
-
-
- txtDomain
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- groupBox1
-
-
- 0
-
-
- Left
-
-
- 0, 0
-
-
- 392, 395
-
-
- 3
-
-
- Domain
-
-
- groupBox1
-
-
- System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel2
-
-
- 1
-
-
- Fill
-
-
- 3, 17
-
-
- True
-
-
- 386, 375
-
-
- 24
-
-
- txtDomain
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- groupBox1
-
-
- 0
-
-
- True
-
-
- 6, 12
-
-
- 742, 576
-
-
- RoutingSettingDetailsForm
-
-
- RoutingSettingDetailsForm
-
-
- v2rayN.Forms.BaseForm, v2rayN, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
-
-
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.zh-Hans.resx b/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.zh-Hans.resx
deleted file mode 100644
index bac9081a..00000000
--- a/v2rayN/v2rayN/Forms/RoutingSettingDetailsForm.zh-Hans.resx
+++ /dev/null
@@ -1,145 +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
-
-
- *设置的路由规则,用逗号(,)分隔;正则中的逗号用<COMMA>替代
-
-
-
- 71, 12
-
-
- OutboundTag
-
-
- 29, 12
-
-
- 别名
-
-
- 取消(&C)
-
-
- 确定(&O)
-
-
- 路由规则详情设置
-
-
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/RoutingSubSettingForm.Designer.cs b/v2rayN/v2rayN/Forms/RoutingSubSettingForm.Designer.cs
deleted file mode 100644
index e085f27f..00000000
--- a/v2rayN/v2rayN/Forms/RoutingSubSettingForm.Designer.cs
+++ /dev/null
@@ -1,106 +0,0 @@
-namespace v2rayN.Forms
-{
- partial class RoutingSubSettingForm
- {
- ///
- /// 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()
- {
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RoutingSubSettingForm));
- this.panel2 = new System.Windows.Forms.Panel();
- this.btnClose = new System.Windows.Forms.Button();
- this.btnOK = new System.Windows.Forms.Button();
- this.panCon = new System.Windows.Forms.Panel();
- this.txtUrl = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.panel2.SuspendLayout();
- this.panCon.SuspendLayout();
- this.SuspendLayout();
- //
- // panel2
- //
- this.panel2.Controls.Add(this.btnClose);
- this.panel2.Controls.Add(this.btnOK);
- resources.ApplyResources(this.panel2, "panel2");
- this.panel2.Name = "panel2";
- //
- // btnClose
- //
- this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- resources.ApplyResources(this.btnClose, "btnClose");
- this.btnClose.Name = "btnClose";
- this.btnClose.UseVisualStyleBackColor = true;
- this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
- //
- // btnOK
- //
- resources.ApplyResources(this.btnOK, "btnOK");
- this.btnOK.Name = "btnOK";
- this.btnOK.UseVisualStyleBackColor = true;
- this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
- //
- // panCon
- //
- resources.ApplyResources(this.panCon, "panCon");
- this.panCon.Controls.Add(this.txtUrl);
- this.panCon.Controls.Add(this.label3);
- this.panCon.Name = "panCon";
- //
- // txtUrl
- //
- resources.ApplyResources(this.txtUrl, "txtUrl");
- this.txtUrl.Name = "txtUrl";
- //
- // label3
- //
- resources.ApplyResources(this.label3, "label3");
- this.label3.Name = "label3";
- //
- // RoutingSubSettingForm
- //
- resources.ApplyResources(this, "$this");
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.CancelButton = this.btnClose;
- this.Controls.Add(this.panCon);
- this.Controls.Add(this.panel2);
- this.Name = "RoutingSubSettingForm";
- this.Load += new System.EventHandler(this.RoutingSubSettingForm_Load);
- this.panel2.ResumeLayout(false);
- this.panCon.ResumeLayout(false);
- this.panCon.PerformLayout();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.Button btnClose;
- private System.Windows.Forms.Button btnOK;
- private System.Windows.Forms.Panel panCon;
- private System.Windows.Forms.TextBox txtUrl;
- private System.Windows.Forms.Label label3;
- }
-}
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/RoutingSubSettingForm.cs b/v2rayN/v2rayN/Forms/RoutingSubSettingForm.cs
deleted file mode 100644
index 7ccb683d..00000000
--- a/v2rayN/v2rayN/Forms/RoutingSubSettingForm.cs
+++ /dev/null
@@ -1,61 +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 v2rayN.Handler;
-using v2rayN.Mode;
-
-namespace v2rayN.Forms
-{
- public partial class RoutingSubSettingForm : BaseForm
- {
- public string Url;
- public RoutingSubSettingForm()
- {
- InitializeComponent();
- }
-
- private void RoutingSubSettingForm_Load(object sender, EventArgs e)
- {
- if (config.ruleSubItem == null)
- {
- config.ruleSubItem = new List();
- }
- if (config.ruleSubItem.Count <= 0)
- {
- config.ruleSubItem.Add(new SubItem
- {
- remarks = "def",
- url = Global.CustomRoutingListUrl + "custom_routing_rules"
- });
- }
- txtUrl.Text = config.ruleSubItem[0].url;
- }
-
- private void btnOK_Click(object sender, EventArgs e)
- {
- var url = txtUrl.Text.Trim();
-
- if (Utils.IsNullOrEmpty(url))
- {
- return;
- }
- Url = url;
- config.ruleSubItem[0].url = url;
- ConfigHandler.SaveRuleSubItem(ref config);
-
- this.DialogResult = DialogResult.OK;
- }
-
- private void btnClose_Click(object sender, EventArgs e)
- {
- this.DialogResult = DialogResult.Cancel;
- }
-
- }
-}
diff --git a/v2rayN/v2rayN/Forms/RoutingSubSettingForm.resx b/v2rayN/v2rayN/Forms/RoutingSubSettingForm.resx
deleted file mode 100644
index 144946ab..00000000
--- a/v2rayN/v2rayN/Forms/RoutingSubSettingForm.resx
+++ /dev/null
@@ -1,300 +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
-
-
-
- NoControl
-
-
-
- 448, 17
-
-
- 75, 23
-
-
-
- 4
-
-
- &Cancel
-
-
- btnClose
-
-
- System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel2
-
-
- 0
-
-
- NoControl
-
-
- 355, 17
-
-
- 75, 23
-
-
- 5
-
-
- &OK
-
-
- btnOK
-
-
- System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panel2
-
-
- 1
-
-
- Bottom
-
-
- 0, 166
-
-
- 545, 60
-
-
- 8
-
-
- panel2
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- $this
-
-
- 1
-
-
- True
-
-
- 83, 19
-
-
- True
-
-
- 450, 113
-
-
- 25
-
-
- txtUrl
-
-
- System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panCon
-
-
- 0
-
-
- True
-
-
- NoControl
-
-
- 12, 19
-
-
- 23, 12
-
-
- 24
-
-
- Url
-
-
- label3
-
-
- System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- panCon
-
-
- 1
-
-
- Fill
-
-
- 0, 0
-
-
- 545, 166
-
-
- 11
-
-
- panCon
-
-
- System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- $this
-
-
- 0
-
-
- True
-
-
- 6, 12
-
-
- 545, 226
-
-
- RoutingSubSetting
-
-
- RoutingSubSettingForm
-
-
- v2rayN.Forms.BaseForm, v2rayN, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
-
-
\ No newline at end of file
diff --git a/v2rayN/v2rayN/Forms/RoutingSubSettingForm.zh-Hans.resx b/v2rayN/v2rayN/Forms/RoutingSubSettingForm.zh-Hans.resx
deleted file mode 100644
index 614f26d1..00000000
--- a/v2rayN/v2rayN/Forms/RoutingSubSettingForm.zh-Hans.resx
+++ /dev/null
@@ -1,133 +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
-
-
- 取消(&C)
-
-
- 确定(&O)
-
-
-
- 65, 12
-
-
- 地址 (url)
-
-
\ No newline at end of file