Пример #1
0
        private void ChangeRotation(object sender, RoutedEventArgs e)
        {
            string rot;

            if (rotation == BShipService.Rotation.DOWN)
            {
                rotation = BShipService.Rotation.RIGHT;
                rot      = "right";
            }
            else
            {
                rotation = BShipService.Rotation.DOWN;
                rot      = "down";
            }
            AddChatMessage("Help", String.Format("New rotation: {0}", rot));
        }
Пример #2
0
 private void ChangeRotation(object sender, RoutedEventArgs e)
 {
     string rot;
     if (rotation == BShipService.Rotation.DOWN)
     {
         rotation = BShipService.Rotation.RIGHT;
         rot = "right";
     }
     else
     {
         rotation = BShipService.Rotation.DOWN;
         rot = "down";
     }
     AddChatMessage("Help", String.Format("New rotation: {0}", rot));
 }