public Gauntlet() { TrackEnabled = Util.TrackUsage(); Program = PROGRAM; InitializeComponent(); debug(Util.TLSIdentity()); args.GotDebug += new DebugDelegate(args_GotDebug); args.ParseArgs(Environment.GetCommandLineArgs()); FormClosing += new FormClosingEventHandler(Gauntlet_FormClosing); debug(RunTracker.CountNewGetPrettyRuns(PROGRAM, Util.PROGRAM)); bw.WorkerSupportsCancellation = true; bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted); bw.DoWork += new DoWorkEventHandler(bw_DoWork); getsymwork.WorkerSupportsCancellation = true; getsymwork.DoWork += new DoWorkEventHandler(getsymwork_DoWork); getsymwork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(getsymwork_RunWorkerCompleted); getsymwork.RunWorkerAsync(); getsymwork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(getsymwork_RunWorkerCompleted); if (args.isUnattended) { ordersincsv.Checked = true; //ShowWindow(System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle, SW_MINIMIZE); bindresponseevents(); queuebut_Click(null, null); } else { status("wait while tickdata is loaded..."); UpdateResponses(Util.GetResponseList(args.DllName)); } }
public Gauntlet() { InitializeComponent(); debug(Util.TLSIdentity()); args.GotDebug += new DebugDelegate(args_GotDebug); args.ParseArgs(Environment.GetCommandLineArgs()); FormClosing += new FormClosingEventHandler(Gauntlet_FormClosing); bw.WorkerSupportsCancellation = true; bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted); bw.DoWork += new DoWorkEventHandler(bw_DoWork); if (args.isUnattended) { background = true; ordersincsv.Checked = true; //ShowWindow(System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle, SW_MINIMIZE); bindresponseevents(); queuebut_Click(null, null); } else { tickFileFilterControl1.SetSymbols(args.Folder); UpdateResponses(Util.GetResponseList(args.DllName)); debug(Util.TLSIdentity()); } }
public Gauntlet() { TrackEnabled = Util.TrackUsage(); Program = PROGRAM; InitializeComponent(); Text += " " + Util.TLVersion(); debug(Util.TLSIdentity()); args.GotDebug += new DebugDelegate(args_GotDebug); args.ParseArgs(Environment.GetCommandLineArgs()); FormClosing += new FormClosingEventHandler(Gauntlet_FormClosing); debug(RunTracker.CountNewGetPrettyRuns(PROGRAM, Util.PROGRAM)); bw.WorkerSupportsCancellation = true; bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted); bw.DoWork += new DoWorkEventHandler(bw_DoWork); getsymwork.WorkerSupportsCancellation = true; getsymwork.DoWork += new DoWorkEventHandler(getsymwork_DoWork); getsymwork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(getsymwork_RunWorkerCompleted); getsymwork.RunWorkerAsync(); getsymwork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(getsymwork_RunWorkerCompleted); if (args.isUnattended) { ordersincsv.Checked = true; if (args.HideWindow) { this.ShowInTaskbar = false; this.WindowState = FormWindowState.Minimized; } //ShowWindow(System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle, SW_MINIMIZE); bindresponseevents(); queuebut_Click(null, null); } else { status("wait while tickdata is loaded..."); UpdateResponses(ResponseLoader.GetResponseList(args.DllName)); } _optdecision.Items.Clear(); _optdecision.Items.AddRange(Optimize.GetDecideable().ToArray()); if (_optdecision.Items.Count > 0) { _optdecision.Text = "NetPL"; } }