public void OnSendMove(object sender, SendEventArgs e) { if (IsLeft(e)) { MovePlatformsLeft(); } if (IsRight(e)) { MovePlatformsRight(); } }
private static bool IsRight(SendEventArgs e) { return e.Key == ConsoleKey.RightArrow; }
private static bool IsLeft(SendEventArgs e) { return e.Key == ConsoleKey.LeftArrow; }
//TODO: create timer public void OnShow(object sender, SendEventArgs e) { matrix = e.Matrix as Matrix; Printer.PrintMatrix(matrix); }
public void OnShow(object sender, SendEventArgs e) { Show(this, new SendEventArgs(layer)); }
public void OnSendMove(object sender, SendEventArgs e) { SendMove(sender, e); }