Form1.cs
changeset 5 b2ed6fc37d95
parent 3 db8e6a25d6bc
child 6 fa97ff5ceb7b
     1.1 --- a/Form1.cs	Tue Nov 04 22:11:01 2014 +0100
     1.2 +++ b/Form1.cs	Wed Nov 05 10:19:02 2014 +0100
     1.3 @@ -129,7 +129,14 @@
     1.4              }
     1.5              else if (e.MceButton != MceButton.Null)
     1.6              {
     1.7 +                //Display MCE button name
     1.8                  label1.Text = e.MceButton.ToString();
     1.9 +                //Check if this is an HP extension
    1.10 +                if (Enum.IsDefined(typeof(HpMceButton), (int)e.MceButton))
    1.11 +                {
    1.12 +                    //Also display HP button name
    1.13 +                    label1.Text += " / HP:" + ((HpMceButton)e.MceButton).ToString();
    1.14 +                }                
    1.15              }
    1.16              else
    1.17              {