public BorderBouncingForm() { // C# doin' his thing InitializeComponent(); // get actual width and height wHeight = ClientSize.Height; wWidth = ClientSize.Width; _grid = new Grid(Width / 30); _bounceBall = new BouncingBall(30,30,20,Brushes.Tomato); }
public GravityTestForm() { // C# doin' his thing InitializeComponent(); // get actual width and height wHeight = ClientSize.Height; wWidth = ClientSize.Width; grid = new Grid(Width / 30); _fallingBlock = new FallingBlock(30, 30, 30, Brushes.BlueViolet); }
public TurningObjectForm() { InitializeComponent(); ball = new TurningBall(50, 50, 50); grid = new Grid(Width / blockSize, blockSize); }
private void BorderBouncingForm_Resize(object sender, EventArgs e) { _grid = new Grid(ClientSize.Width / 30); }