Example #1
0
 private void SwitchControl_Switched_1(SwitchControl.SwitchSide obj)
 {
     if (obj == SwitchControl.SwitchSide.Left)
     {
         _dataI = 0;
     }
     else if (obj == SwitchControl.SwitchSide.Right)
     {
         _dataI = 1;
     }
 }
Example #2
0
        private void SwitchControl_Switched(SwitchControl.SwitchSide obj)
        {
            bool rainy = obj == SwitchControl.SwitchSide.Right;

            SwitchSunnyRainy(rainy);
        }