static void Main(string[] args) { ApplicationConfiguration.Initialize(); System.Collections.Generic.List <string> a = new System.Collections.Generic.List <string>(args); if (args.Length > 0) { using (GameSelect gs = new GameSelect()) { if (gs.ShowDialog() == DialogResult.OK) { a.Add(gs.GameID.ToString()); } else { a.Add((-1).ToString()); } } } Application.Run(new Form1(a.ToArray())); }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); System.Collections.Generic.List <string> a = new System.Collections.Generic.List <string>(args); if (args.Length > 0) { using (GameSelect gs = new GameSelect()) { if (gs.ShowDialog() == DialogResult.OK) { a.Add(gs.GameID.ToString()); } else { a.Add((-1).ToString()); } } } Application.Run(new Form1(a.ToArray())); }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); System.Collections.Generic.List<string> a = new System.Collections.Generic.List<string>(args); if (args.Length > 0) { using (GameSelect gs = new GameSelect()) { if (gs.ShowDialog() == DialogResult.OK) { a.Add(gs.GameID.ToString()); } else { a.Add((-1).ToString()); } } } Application.Run(new Form1(a.ToArray())); }