Form1.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
public delegate int caculate(int x, int y);//声明委托
// 下载于www.51aspx.com
namespace 计算器
{
    public partial class Form1 : Form
    {
        public caculate handler;//定义委托
        jisuan math = new jisuan();
        int num_1,num_2;//两个操作数
        bool iscontinue = true;//判断是否连续输入数字
        public Form1()
        {
            InitializeComponent();
        }
        // 下载于www.51aspx.com
        private void button2_Click(object sender, EventArgs e)
        {
            if (lblshow.Text != "0")
            {
                if (sender is Button)
                {
                    Button bt = (Button)sender;
                    if (lblshow.Text != "E")
                    {
                        if (iscontinue)
                        {
                            lblshow.Text += bt.Text;
                        }
                        else
                        {
                            iscontinue = true;
                            lblshow.Text = bt.Text;
                        }
                    }
                    else
                    {

                        lblshow.Text = "E";
                    }
                }
            }
            else
            {
                lblshow.Text = "";
                if (sender is Button)
                {
                    Button bt = (Button)sender;
                    if (lblshow.Text != "E")
                    {
                        if (iscontinue)
                        {
                            lblshow.Text += bt.Text;
后面还有 110 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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