AppCash/开始收银/frmCounts.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AppCash
{
    public partial class frmCounts : Form
    {
        public frmCounts()
        {
            InitializeComponent();
        }
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            switch (keyData)
            {
                case Keys.Escape:

                    this.Close();
                    return true;
                case Keys.Enter:
                    if (tbCounts.Text != "")
                    {
                        frmCash frmP = (frmCash)this.Owner;
                        frmP.editCounts(int.Parse(tbCounts.Text));
                        this.Close();
                    }
                    
                    return true;
                
                default:
                    return base.ProcessCmdKey(ref msg, keyData);
            }
        }

        private void frmCounts_Load(object sender, EventArgs e)
        {
            this.Show();
            this.TopMost = true;
        }
    }
}

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

AI 解读

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

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