private void Ship_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) //no { WindowConfig.ShipState = WindowConfig.State.Ship3; IsPlaced = false; for (int i = 0; i < Length; i++) { PlayField.DeleteCell(Grid.GetColumn(Images[i]), Grid.GetRow(Images[i]), playField); } }
private void Ship_MouseRightButtonDown(object sender, MouseButtonEventArgs e) //no { int x = Grid.GetColumn(Images[0]); int y = Grid.GetRow(Images[0]); for (int i = 0; i < Length; i++) { PlayField.DeleteCell(Grid.GetColumn(Images[i]), Grid.GetRow(Images[i]), playField); } ChangeOrientation(); Place(x, y, playField); }