Esempio n. 1
0
        private void AlarmForm_Load(object sender, EventArgs e)
        {
            var width      = richTextBoxAlarmContent.Width;
            var formmWidth = this.Width;

            richTextBoxAlarmContent.Left = (formmWidth - width) / 2;
            AlarmHelper.StartAlarm();
        }
Esempio n. 2
0
 private void AlarmForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     AlarmHelper.StopAlarm();
 }