207 lines
6.9 KiB
C#
207 lines
6.9 KiB
C#
namespace SignalRTest
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
button1 = new Button();
|
|
button2 = new Button();
|
|
txtUrl = new TextBox();
|
|
TokenTxt = new TextBox();
|
|
UrlLab = new Label();
|
|
label2 = new Label();
|
|
Historylab = new RichTextBox();
|
|
label3 = new Label();
|
|
MethodTxt = new TextBox();
|
|
label4 = new Label();
|
|
SendMsg = new Button();
|
|
ParamsTxt = new TextBox();
|
|
label5 = new Label();
|
|
toolTip1 = new ToolTip(components);
|
|
SuspendLayout();
|
|
//
|
|
// button1
|
|
//
|
|
button1.Location = new Point(143, 294);
|
|
button1.Name = "button1";
|
|
button1.Size = new Size(94, 29);
|
|
button1.TabIndex = 0;
|
|
button1.Text = "连接";
|
|
button1.UseVisualStyleBackColor = true;
|
|
button1.Click += button1_Click;
|
|
//
|
|
// button2
|
|
//
|
|
button2.Location = new Point(278, 294);
|
|
button2.Name = "button2";
|
|
button2.Size = new Size(94, 29);
|
|
button2.TabIndex = 1;
|
|
button2.Text = "断开连接";
|
|
button2.UseVisualStyleBackColor = true;
|
|
button2.Click += button2_Click;
|
|
//
|
|
// txtUrl
|
|
//
|
|
txtUrl.Location = new Point(112, 39);
|
|
txtUrl.Name = "txtUrl";
|
|
txtUrl.Size = new Size(303, 27);
|
|
txtUrl.TabIndex = 2;
|
|
txtUrl.Text = "http://localhost:5202/chat";
|
|
//
|
|
// TokenTxt
|
|
//
|
|
TokenTxt.Location = new Point(553, 39);
|
|
TokenTxt.Name = "TokenTxt";
|
|
TokenTxt.Size = new Size(125, 27);
|
|
TokenTxt.TabIndex = 3;
|
|
//
|
|
// UrlLab
|
|
//
|
|
UrlLab.AutoSize = true;
|
|
UrlLab.Location = new Point(31, 42);
|
|
UrlLab.Name = "UrlLab";
|
|
UrlLab.Size = new Size(38, 20);
|
|
UrlLab.TabIndex = 4;
|
|
UrlLab.Text = "URL";
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Location = new Point(475, 42);
|
|
label2.Name = "label2";
|
|
label2.Size = new Size(69, 20);
|
|
label2.TabIndex = 5;
|
|
label2.Text = "登录凭证";
|
|
//
|
|
// Historylab
|
|
//
|
|
Historylab.Location = new Point(112, 85);
|
|
Historylab.Name = "Historylab";
|
|
Historylab.Size = new Size(303, 188);
|
|
Historylab.TabIndex = 6;
|
|
Historylab.Text = "";
|
|
//
|
|
// label3
|
|
//
|
|
label3.AutoSize = true;
|
|
label3.Location = new Point(16, 165);
|
|
label3.Name = "label3";
|
|
label3.Size = new Size(69, 20);
|
|
label3.TabIndex = 7;
|
|
label3.Text = "消息历史";
|
|
//
|
|
// MethodTxt
|
|
//
|
|
MethodTxt.Location = new Point(553, 182);
|
|
MethodTxt.Name = "MethodTxt";
|
|
MethodTxt.Size = new Size(125, 27);
|
|
MethodTxt.TabIndex = 8;
|
|
toolTip1.SetToolTip(MethodTxt, "后端hub内对应方法名,大小写敏感");
|
|
//
|
|
// label4
|
|
//
|
|
label4.AutoSize = true;
|
|
label4.Location = new Point(475, 182);
|
|
label4.Name = "label4";
|
|
label4.Size = new Size(39, 20);
|
|
label4.TabIndex = 9;
|
|
label4.Text = "方法";
|
|
toolTip1.SetToolTip(label4, "后端hub内对应方法名,大小写敏感");
|
|
//
|
|
// SendMsg
|
|
//
|
|
SendMsg.Location = new Point(705, 244);
|
|
SendMsg.Name = "SendMsg";
|
|
SendMsg.Size = new Size(94, 29);
|
|
SendMsg.TabIndex = 10;
|
|
SendMsg.Text = "发送";
|
|
SendMsg.UseVisualStyleBackColor = true;
|
|
SendMsg.Click += SendMsg_Click;
|
|
//
|
|
// ParamsTxt
|
|
//
|
|
ParamsTxt.Location = new Point(553, 246);
|
|
ParamsTxt.Name = "ParamsTxt";
|
|
ParamsTxt.Size = new Size(125, 27);
|
|
ParamsTxt.TabIndex = 11;
|
|
toolTip1.SetToolTip(ParamsTxt, "hub方法对应参数,请使用以下格式:[参数1,参数2,参数3,...]");
|
|
//
|
|
// label5
|
|
//
|
|
label5.AutoSize = true;
|
|
label5.Location = new Point(475, 253);
|
|
label5.Name = "label5";
|
|
label5.Size = new Size(39, 20);
|
|
label5.TabIndex = 12;
|
|
label5.Text = "参数";
|
|
toolTip1.SetToolTip(label5, "hub方法对应参数,请使用以下格式:[参数1,参数2,参数3,...]");
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleDimensions = new SizeF(9F, 20F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(800, 450);
|
|
Controls.Add(label5);
|
|
Controls.Add(ParamsTxt);
|
|
Controls.Add(SendMsg);
|
|
Controls.Add(label4);
|
|
Controls.Add(MethodTxt);
|
|
Controls.Add(label3);
|
|
Controls.Add(Historylab);
|
|
Controls.Add(label2);
|
|
Controls.Add(UrlLab);
|
|
Controls.Add(TokenTxt);
|
|
Controls.Add(txtUrl);
|
|
Controls.Add(button2);
|
|
Controls.Add(button1);
|
|
Name = "Form1";
|
|
Text = "SignalR调试工具";
|
|
Load += Form1_Load;
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Button button1;
|
|
private Button button2;
|
|
private TextBox txtUrl;
|
|
private TextBox TokenTxt;
|
|
private Label UrlLab;
|
|
private Label label2;
|
|
private RichTextBox Historylab;
|
|
private Label label3;
|
|
private TextBox MethodTxt;
|
|
private Label label4;
|
|
private Button SendMsg;
|
|
private TextBox ParamsTxt;
|
|
private Label label5;
|
|
private ToolTip toolTip1;
|
|
}
|
|
}
|