Skip to content

Commit 5639a60

Browse files
committed
Release version: 2.1.2
1 parent 9a1206f commit 5639a60

File tree

17 files changed

+400
-80
lines changed

17 files changed

+400
-80
lines changed

QpTestClient/Forms/GenerateConnectionUrl.Designer.cs

Lines changed: 110 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Data;
5+
using System.Drawing;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows.Forms;
10+
11+
namespace QpTestClient.Forms
12+
{
13+
public partial class GenerateConnectionUrl : Form
14+
{
15+
private ConnectionContext connectionContext;
16+
public GenerateConnectionUrl(ConnectionContext connectionContext)
17+
{
18+
this.connectionContext=connectionContext;
19+
InitializeComponent();
20+
}
21+
22+
private void GenerateConnectionUrl_Load(object sender, EventArgs e)
23+
{
24+
Text =$"生成[{connectionContext.ConnectionInfo.Name}]连接URL";
25+
generate();
26+
}
27+
28+
private void Checkbox_CheckedChanged(object sender, EventArgs e)
29+
{
30+
generate();
31+
}
32+
33+
private void generate()
34+
{
35+
var includePassword = cbIncludePassword.Checked;
36+
var includeOtherProperty = cbIncludeOtherProperty.Checked;
37+
38+
txtOutput.Text = Quick.Protocol.AllClients.ConnectionUriParser.GenerateConnectionUri(
39+
connectionContext.ConnectionInfo.QpClientOptions,
40+
includePassword,
41+
includeOtherProperty
42+
).ToString();
43+
}
44+
45+
private void btnCopy_Click(object sender, EventArgs e)
46+
{
47+
Clipboard.SetText(txtOutput.Text);
48+
MessageBox.Show("已复制到剪贴板!", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
49+
}
50+
}
51+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<root>
2+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
3+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
4+
<xsd:element name="root" msdata:IsDataSet="true">
5+
<xsd:complexType>
6+
<xsd:choice maxOccurs="unbounded">
7+
<xsd:element name="metadata">
8+
<xsd:complexType>
9+
<xsd:sequence>
10+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
11+
</xsd:sequence>
12+
<xsd:attribute name="name" use="required" type="xsd:string" />
13+
<xsd:attribute name="type" type="xsd:string" />
14+
<xsd:attribute name="mimetype" type="xsd:string" />
15+
<xsd:attribute ref="xml:space" />
16+
</xsd:complexType>
17+
</xsd:element>
18+
<xsd:element name="assembly">
19+
<xsd:complexType>
20+
<xsd:attribute name="alias" type="xsd:string" />
21+
<xsd:attribute name="name" type="xsd:string" />
22+
</xsd:complexType>
23+
</xsd:element>
24+
<xsd:element name="data">
25+
<xsd:complexType>
26+
<xsd:sequence>
27+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
28+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
29+
</xsd:sequence>
30+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
31+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
32+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
33+
<xsd:attribute ref="xml:space" />
34+
</xsd:complexType>
35+
</xsd:element>
36+
<xsd:element name="resheader">
37+
<xsd:complexType>
38+
<xsd:sequence>
39+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
40+
</xsd:sequence>
41+
<xsd:attribute name="name" type="xsd:string" use="required" />
42+
</xsd:complexType>
43+
</xsd:element>
44+
</xsd:choice>
45+
</xsd:complexType>
46+
</xsd:element>
47+
</xsd:schema>
48+
<resheader name="resmimetype">
49+
<value>text/microsoft-resx</value>
50+
</resheader>
51+
<resheader name="version">
52+
<value>2.0</value>
53+
</resheader>
54+
<resheader name="reader">
55+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
56+
</resheader>
57+
<resheader name="writer">
58+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
59+
</resheader>
60+
</root>

QpTestClient/MainForm.Designer.cs

Lines changed: 30 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)