private void RotateColors_ManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e) { var border = sender as Border; if (border != null) { this.chosenColor = this.GetClosestColor(colorsRotation.Angle); this.colorsRotation.Angle = (int)chosenColor; } }
public static string rt_setColor(RTColors colors) { return("<color=" + colors.ToString() + ">"); }
private static Color RTColorsToColor(RTColors colorType) { Color newColor = new Color(); switch (colorType) { case RTColors.Red: newColor = Colors.Red; break; case RTColors.Green: newColor = Colors.Green; break; case RTColors.Blue: newColor = Colors.Blue; break; case RTColors.Black: newColor = Colors.Black; break; } return newColor; }