public static GamePanel CreateNewInstance(GameForm parent, int mpx, int mpy, int viewdiag) { GamePanel ret = new GamePanel(); ret.parent = parent; return ret; }
public static void RunNewGameForm(string username, ColorRunGame.UI.Form1 close) { Program.Username = username; GForm = new GameForm(); close.Close(); }