public void AddExecutionReport(ExecutionReport executionReport) { Executions.Add(executionReport); AvgPrice = executionReport.AveragePrice; Status = executionReport.Status; var executionReportAddedEventArgs = new ExecutionReportAddedEventArgs { ExecutionReport = executionReport }; var executionReportAddedHandler = ExecutionReportAdded; if (executionReportAddedHandler != null) { executionReportAddedHandler(this, executionReportAddedEventArgs); } }
private void onNewExecutionReport(ExecutionReportAddedEventArgs reportArgs) { //executionBindingSource.Add(reportArgs.ExecutionReport); dataGridViewExecutions.Refresh(); }