TimerForm.cs

(开头部分) 2KB

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

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

namespace CustomTimers
{
    public partial class TimerForm : Form
    {
        // 下载于www.51aspx.com
        private MessageBoxForm _MessageBoxForm = new MessageBoxForm ();
        public TimerForm ()
        {
            InitializeComponent ();

            ucCountdown.TimerCompleted += new EventHandler(ucCountdown_TimerCompleted);
            ucCountdown.TimerStarted += new EventHandler(ucCountdown_TimerStarted);
        }
        private void TimerForm_Resize (object sender, EventArgs e)
        {
            if (FormWindowState.Minimized == WindowState)
            {
                this.Hide ();
                nicoMain.Text = string.Format (
                    "{0}: {1}", ucCountdown.TimerState, ucCountdown.Message);
            }
        }

        private void nicoMain_DoubleClick (object sender, EventArgs e)
        {
            this.Show ();
            WindowState = FormWindowState.Normal;
        }

        private void aboutToolStripMenuItem_Click (object sender, EventArgs e)
        {
        
            _MessageBoxForm.Message = string.Format (
                "\n" +
                "Author: 51aspx\n" +
               
                "HelloCsharp.com \n");
            _MessageBoxForm.StartPosition = FormStartPosition.CenterParent;
            _MessageBoxForm.ShowDialog (this);

        }

        private void ucCountdown_TimerCompleted (object sender, EventArgs e)
        {
            this.Show ();
            this.WindowState = FormWindowState.Normal;
后面还有 31 行代码,解锁后查看完整代码

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

AI 解读

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

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