コード例 #1
0
        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);
            }
        }
コード例 #2
0
 private void onNewExecutionReport(ExecutionReportAddedEventArgs reportArgs)
 {
     //executionBindingSource.Add(reportArgs.ExecutionReport);
     dataGridViewExecutions.Refresh();
 }