private void buttonCalc_Click(object sender, EventArgs e) { SetUserDefinedDate(); log_.Info("==>Calculate start. Start Date = " + History_.MinDate.ToLongDateString() + ", End Date = " + History_.MaxDate.ToLongDateString()); FormStrategy frm = new FormStrategy(); if (frm.ShowDialog() != DialogResult.OK) { log_.Info("<==Calculate end. Not select strategy. "); return; } FinanceRunner runner = new FinanceRunner(); runner.CurrentBonusProcessor = BonusProcessor_; runner.Go(History_, frm.Factory); _results = runner.Results; log_.Info("<==Calculate complete. "); ShowCompareResults(); }
private void btStrategy_Click(object sender, EventArgs e) { FormStrategy form = new FormStrategy(chartComponent); DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { IStrategyExecutorPool pool = StrategyCenter.Default.GetStrategyExecutorPool(); FormStrategyExecutorState formRunState = new FormStrategyExecutorState(pool); formRunState.TopMost = true; formRunState.Show(); } }
static void Main(string[] args) { var options = new Options(); if (!CommandLine.Parser.Default.ParseArguments(args, options)) { return; } IStrategy strategy; if (options.TrackReports) { strategy = new ReportStrategy(options.Output); } else if (options.SearchSql) { strategy = new SqlSummaryStrategy(options.Output); } else if (options.SearchForm) { strategy = new FormStrategy(options.Target, options.Output); } else if (options.SearchStoredProcedures) { strategy = new StoredProcedureStrategy(options.Output); } else { strategy = new SummaryStrategy(options.Output); } var context = new Context(options.Target, strategy); context.Execute(); }
private void btStrategy_Click(object sender, EventArgs e) { FormStrategy frm = new FormStrategy(binder, this.strategyInfo, this.strategy, this.compChart1.CompChartData.DataPackage); frm.Show(this); }