⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.cs

📁 一个用C#编写的能实现即时通讯的工具
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using agsXMPP;

namespace client
{
    public partial class login : Form
    {
        private XmppClientConnection connection;

        public login(XmppClientConnection con)
        {
            InitializeComponent();
            connection = con;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            connection.Username = tbx_user.Text;
            connection.Server = tbx_server.Text;
            connection.Password = tbx_pwd.Text;
            connection.Port = 10000;
            connection.Resource = "Resource";

            this.DialogResult = DialogResult.OK;
        }
        private void btn_cancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -