frmMain.cs

(开头部分) 4KB

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

/************************************************************************************
 *源码来自(C#源码世界)  www.HelloCsharp.com
 *如果对该源码有问题可以直接点击下方的提问按钮进行提问哦
 *站长将亲自帮你解决问题
 *C#源码世界-找到你需要的C#源码,交流和学习
************************************************************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Media;
using System.Text;

using System.Windows.Forms;

namespace 全民英雄
{
    public partial class frmMain : Form
    {
        MapInfo mapinfo;

        /// <summary>
        /// 构造函数
        /// </summary>
        public frmMain()
        {

            InitializeComponent();
            //关闭最大化
            this.MaximizeBox = false;
            //取消边框拉伸
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            //设置窗体大小
            this.Size = new Size(500, 680);
            //开启timer
            this.timer1.Enabled = true;
            this.timer2.Enabled = true;
            //开启双缓存
            this.DoubleBuffered = true;
            mapinfo = new MapInfo(this);
            this.timer3.Enabled = false;
            this.tableLayoutPanel1.Visible = false;
            this.tableLayoutPanel2.Visible = false;
            this.tableLayoutPanel2.Location = new Point(145, 250);
        }

        /// <summary>
        /// 绘制函数
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            //调用业务逻辑中的跟新方法
            mapinfo.UpdateDrawInfo(e.Graphics);

        }
        int count = 0;
后面还有 94 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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