frmoption.cs

来自「.Net实现的局域网完整IM,含完整的设计远隔」· CS 代码 · 共 37 行

CS
37
字号
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 + =
减小字号Ctrl + -
显示快捷键?