static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Controller_MainForm cm = new Controller_MainForm(Properties.Settings.Default.amountSimpleTanks, Properties.Settings.Default.speedGame, Properties.Settings.Default.amountWalls, Properties.Settings.Default.amountHunterTanks); Application.Run(cm); }
static void Main(string[] args) { Controller_MainForm cm; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); switch (args.Length) { case 0: default: cm = new Controller_MainForm(); break; case 1: cm = new Controller_MainForm(Convert.ToInt32(args[0])); break; case 2: cm = new Controller_MainForm(Convert.ToInt32(args[0]), Convert.ToInt32(args[1])); break; case 3: cm = new Controller_MainForm(Convert.ToInt32(args[0]), Convert.ToInt32(args[1]), Convert.ToInt32(args[2])); break; } Application.Run(cm); }