middleware/Debug/DebugWindow.xaml.cs
changeset 17 fda26bfcabef
parent 16 a9ebacd6c089
child 18 a03d6f25c74f
equal deleted inserted replaced
16:a9ebacd6c089 17:fda26bfcabef
   637                         break;
   637                         break;
   638                     case "PULL-LEFT": bitmap = (Bitmap)rm.GetObject("pull_left");
   638                     case "PULL-LEFT": bitmap = (Bitmap)rm.GetObject("pull_left");
   639                         break;
   639                         break;
   640                     case "PULL-BOTH": bitmap = (Bitmap)rm.GetObject("pull_both");
   640                     case "PULL-BOTH": bitmap = (Bitmap)rm.GetObject("pull_both");
   641                         break;
   641                         break;
       
   642                     case "WAVE": bitmap = (Bitmap)rm.GetObject("wave");
       
   643                         break;
       
   644                     case "BEND": bitmap = (Bitmap)rm.GetObject("bend");
       
   645                         break;
       
   646                     case "CROSS": bitmap = (Bitmap)rm.GetObject("cross");
       
   647                         break;
       
   648                     case "KNEE-UP": bitmap = (Bitmap)rm.GetObject("knee_up");
       
   649                         break;
   642                 }
   650                 }
   643                 Gestures.Source = CreateBitmapSourceFromBitmap(bitmap);
   651                 Gestures.Source = CreateBitmapSourceFromBitmap(bitmap);
   644             }
   652             }
   645 
   653 
   646             DebugImage.Source = null;
   654             DebugImage.Source = null;
   885         }
   893         }
   886         public MenuItem getParamMenu()
   894         public MenuItem getParamMenu()
   887         {
   895         {
   888             return ParamMenu;
   896             return ParamMenu;
   889         }
   897         }
       
   898 
       
   899         public void onR0(bool b)
       
   900         {
       
   901             if(b)
       
   902                 R0.Fill = System.Windows.Media.Brushes.Blue;
       
   903             else
       
   904                 R0.Fill = System.Windows.Media.Brushes.DarkGray;
       
   905         }
       
   906         public void onR1(bool b)
       
   907         {
       
   908             if (b)
       
   909                 R1.Fill = System.Windows.Media.Brushes.Blue;
       
   910             else
       
   911                 R1.Fill = System.Windows.Media.Brushes.DarkGray;
       
   912         }
       
   913         public void onR2(bool b)
       
   914         {
       
   915             if (b)
       
   916                 R2.Fill = System.Windows.Media.Brushes.Blue;
       
   917             else
       
   918                 R2.Fill = System.Windows.Media.Brushes.DarkGray;
       
   919         }
       
   920         public void onR3(bool b)
       
   921         {
       
   922             if (b)
       
   923                 R3.Fill = System.Windows.Media.Brushes.Blue;
       
   924             else
       
   925                 R3.Fill = System.Windows.Media.Brushes.DarkGray;
       
   926         }
       
   927         public void onR4(bool b)
       
   928         {
       
   929             if (b)
       
   930                 R4.Fill = System.Windows.Media.Brushes.Blue;
       
   931             else
       
   932                 R4.Fill = System.Windows.Media.Brushes.DarkGray;
       
   933         }
       
   934         public void onR5(bool b)
       
   935         {
       
   936             if (b)
       
   937                 R5.Fill = System.Windows.Media.Brushes.Blue;
       
   938             else
       
   939                 R5.Fill = System.Windows.Media.Brushes.DarkGray;
       
   940         }
       
   941         public void onR6(bool b)
       
   942         {
       
   943             if (b)
       
   944                 R6.Fill = System.Windows.Media.Brushes.Blue;
       
   945             else
       
   946                 R6.Fill = System.Windows.Media.Brushes.DarkGray;
       
   947         }
       
   948         public void onR7(bool b)
       
   949         {
       
   950             if (b)
       
   951                 R7.Fill = System.Windows.Media.Brushes.Blue;
       
   952             else
       
   953                 R7.Fill = System.Windows.Media.Brushes.DarkGray;
       
   954         }
       
   955         public void onR8(bool b)
       
   956         {
       
   957             if (b)
       
   958                 R8.Fill = System.Windows.Media.Brushes.Blue;
       
   959             else
       
   960                 R8.Fill = System.Windows.Media.Brushes.DarkGray;
       
   961         }
       
   962         public void onR9(bool b)
       
   963         {
       
   964             if (b)
       
   965                 R9.Fill = System.Windows.Media.Brushes.Blue;
       
   966             else
       
   967                 R9.Fill = System.Windows.Media.Brushes.DarkGray;
       
   968         }
       
   969         public void onR10(bool b)
       
   970         {
       
   971             if (b)
       
   972                 R10.Fill = System.Windows.Media.Brushes.Blue;
       
   973             else
       
   974                 R10.Fill = System.Windows.Media.Brushes.DarkGray;
       
   975         }
   890     }
   976     }
   891 }
   977 }