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 PcgDrawR
{
///
/// 许可服务器设置窗体.
///
public partial class FrmLicenseServerConfig : Form
{
private string message = string.Empty;
///
/// Gets or sets 消息.
///
public string Message
{
get
{
return message;
}
set
{
message = value;
this.lblServerInfo.Text = message;
}
}
private string url = "127.0.0.1:9527";
///
/// Gets or sets IP.
///
public string Url
{
get
{
return url;
}
set
{
if (url?.Equals(value) == false)
{
url = value;
this.txtIP.Text = url;
}
}
}
///
/// Initializes a new instance of the class.
///
public FrmLicenseServerConfig()
{
InitializeComponent();
}
///
/// 测试服务器连接事件.
///
/// The sender.
/// The e.
private void btnTest_Click(object sender, EventArgs e)
{
}
///
/// 确定按钮点击事件.
///
/// The sender.
/// The e.
private void btnOK_Click(object sender, EventArgs e)
{
this.url = this.txtIP.Text;
this.DialogResult = DialogResult.OK;
}
///
/// 取消按钮点击事件.
///
/// The sender.
/// The e.
private void btnCancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
}
}