⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alarmclockcontrolhostform.cs

📁 中文名:Windows Forms 程序设计 英文名:Windows Forms Programming in c# 作者: Chris Sells 翻译: 荣耀 蒋贤哲 出版社:人民
💻 CS
字号:
#region Using directives

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

#endregion

namespace AlarmClockControlHost {
  partial class AlarmClockControlHostForm : Form {
    public AlarmClockControlHostForm() {
      InitializeComponent();
    }

    private void alarmClockControl_AlarmSounded(object sender, AlarmClockControlLibrary.AlarmSoundedEventArgs e) {
      MessageBox.Show("It's " + e.Alarm.ToString() + ". Wake up!");
    }

    private void alarmClockControl_AlarmChanged(object sender, AlarmClockControlLibrary.AlarmChangedEventArgs e) {
      MessageBox.Show("Alarm changed to " + e.Alarm.ToString());
    }

    private void alarmClockControl_MessageNotification(object sender, AlarmClockControlLibrary.MessageNotificationEventArgs e) {
      MessageBox.Show("You have a message: " + e.Message);

    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -