客户端/Client/Client/Main_interface.cs

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Client
{
    public partial class Main_interface : Form
    {
        //对Login的引用
        Login login;
        public Main_interface()
        {  
            InitializeComponent();
        }
        //打开程序操作
        private void Main_interface_Load(object sender, EventArgs e)
        {

            Control.CheckForIllegalCrossThreadCalls = false;
            //取消最大化按钮
            this.MaximizeBox = false;
                //取消最小化按钮
                this.MinimizeBox = false;
                //取消关闭按钮
                this.ControlBox = false;
                //改变边框属性
                this.FormBorderStyle = FormBorderStyle.FixedDialog;
                //对标题栏进行修改
                this.Text = "欢迎您,尊敬的用户:" + UserHelper.UserName;
                Thread th = new Thread(Time);
                th.IsBackground = true;
                th.Start();
                //图标显示
                Xiaobai.Visible = true;
                //任务栏图标信息
                Xiaobai.Text = "账号:" + UserHelper.UserName;

            Control.CheckForIllegalCrossThreadCalls = false;
            ///////////////分割线///////////////////
            ///
           
           string sqlstr =string .Format( "0001select * from P_Information where I_user='{0}'",UserHelper.UserName);
           byte[] buffer = System.Text.Encoding.UTF8.GetBytes(sqlstr);
           //将buffer中的数据发送到Socket
           SocketHelper.socketSend.Send(buffer);

           Thread thh = new Thread(Recive);
           thh.IsBackground = true;
           thh.Start();
后面还有 308 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。