Form1.cs

(开头部分) 10KB

这里只显示每个文件的开头 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;
using System.IO;

namespace testcal2
{
    public partial class Form1 : Form
    {
        private double numop1 = 0;
        private double numop2 = 0;
        private double result = 0;
        string op = null;
        public Form1()
        {
            InitializeComponent();
        }
        Info mes = new Info();
        #region 说明和功能
        private void Form1_Load(object sender, EventArgs e)
        {     
            mes.a = "说明";                  
            mes.b = "F2:窗口总在最前\r\nF3:解锁/锁定窗口\r\nF4:隐藏任务栏图标\r\nW/S:调整透明度\r\nESC:退出";
        }          
        private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
                case Keys.W: 
                        this.Opacity += 0.1; 
                    break;
                case Keys.S:                 
                        this.Opacity -= 0.1;          
                    break;
                case Keys.F1:
                    mes.ShowDialog();
                    break;
                case Keys.F2:
                    this.TopMost = !this.TopMost;
                    break;
                case Keys.F3:
                    if (this.FormBorderStyle == FormBorderStyle.FixedToolWindow)
                        this.FormBorderStyle = FormBorderStyle.None;
                    else
                        this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
                    break;
                case Keys.F4:
                    this.ShowInTaskbar = !this.ShowInTaskbar;
                    break;
                case Keys.Escape:
                    this.Close();
                    break;
            }
        }
        #endregion
后面还有 281 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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