Esempio n. 1
0
		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;
			}
		}
Esempio n. 2
0
 public static string rt_setColor(RTColors colors)
 {
     return("<color=" + colors.ToString() + ">");
 }
Esempio n. 3
0
		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;
		}