📄 frmoption.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace JPMLab_LanTalker_Server
{
public partial class frmOption : Form
{
public frmOption()
{
InitializeComponent();
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void btnSave_Click(object sender, EventArgs e)
{
if (txtServerPort.Text.Length > 0)
{
OperationCenter.ServerPort = int.Parse(txtServerPort.Text);
}
this.Close();
}
private void frmOption_Load(object sender, EventArgs e)
{
txtServerPort.Text = Convert.ToString(OperationCenter.ServerPort);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -