Example #1
0
 void OnBeep(BeepType type)
 {
     if (Beeped != null)
     {
         var e = new BeepEventArgs();
         e.Type = type;
         Beeped(this, e);
     }
 }
Example #2
0
        private void OnBeeped(object sender, BeepEventArgs e)
        {
            var letter = mp.LetterNow;
            BeginInvoke((Action)(() => writeLetter(letter)));

            var beepType = e.Type;

            if (letter != "")
            {
                // 何らかのキーが押された場合
                qmarker.IsTypedkeyCorrect(letter);
            }
            if (beepType == BeepType.SqueezeDit || beepType == BeepType.OnlyDit)
            {
                // ditが鳴らされた場合
                ditDahBox.BeginInvoke((Action)(() => AppendDitToBox()));
            }
            else// if (beepType == Dah)
            {
                // dahが鳴らされた場合
                ditDahBox.BeginInvoke((Action)(() => AppendDahToBox()));
            }
        }
Example #3
0
 void OnBeep(BeepType type)
 {
     if (Beeped != null)
     {
         var e = new BeepEventArgs();
         e.Type = type;
         Beeped(this, e);
     }
 }