Ejemplo n.º 1
0
		public FlagShape(Flag flag) 
		{
			Text = flag.number.ToString();
			Foreground = flagFillBrush;
			TextAlignment = TextAlignment.Center;
			HorizontalAlignment = HorizontalAlignment.Center;
			VerticalAlignment = VerticalAlignment.Center;
		}
Ejemplo n.º 2
0
		void AddFlag(int i, int x, int y)
		{
			var item = new Flag(i);
			item.position = new Position(x, y); ;
			boardElements.Add(item);
		}