public ProgressMessage(InvokationResult ir) { this.time = ir.Time; this.operation = ir.Operation.Name; this.service = ir.Operation.ServiceName; this.regionSystemName = ir.Operation.Region.SystemName; this.regionDisplayName = ir.Operation.Region.DisplayName; if (ir.IsError()) { this.result = ir.Ex.Message; this.imageIndex = 2; } else { this.result = ir.ResultText(); this.imageIndex = 0; } }
private void UpdateStatusBar(InvokationResult ir) { this.progressBar.Value = ir.Progress; this.statusLabel.Text = ir.ResultText(); }