static void Main(string[] args) { XmlConfigurator.Configure(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Logger.Info("Starting up"); BalloonStoreOptions options = new BalloonStoreOptions(); if (Parser.Default.ParseArguments(args, options)) { options.SetDefaults(); BalloonStore store = new BalloonStore(options); BalloonStoreForm form = new BalloonStoreForm(store); store.Start(); Application.Run(form); } else { Logger.Info("Provided args: " + string.Join(" ", args)); Logger.Info(options.GetUsage()); } }
public BalloonStoreForm(BalloonStore store) { InitializeComponent(); BalloonStore = store; BalloonStore.Shutdown += BalloonStore_Shutdown; timer = new Timer(); timer.Interval = 200; timer.Tick += Timer_Tick; ProcessLabel.Text = ""; EndpointLabel.Text = ""; StatusLabel.Text = "Initializing"; GameIdLabel.Text = ""; GameStatusLabel.Text = ""; NumPlayerLabel.Text = ""; NumBSLabel.Text = ""; NumWSLabel.Text = ""; NumUSLabel.Text = ""; }