private void AssertOperationOK(CoreOperationResult operationResult) { if (operationResult == CoreOperationResult.OK) { return; } MessageBox.Show("An error occured, the error message will now be written to Trace.log", "Program Error", MessageBoxButtons.OK, MessageBoxIcon.Error); this.LogError(operationResult.Exception); }
/// <summary> /// Initializes the CoreOperationResult class. /// </summary> static CoreOperationResult() { CoreOperationResult.OK = new CoreOperationResult(null); }
private void AssertOperationOK(CoreOperationResult operationResult) { if (operationResult == CoreOperationResult.OK) return; MessageBox.Show("An error occured, the error message will now be written to Trace.log", "Program Error", MessageBoxButtons.OK, MessageBoxIcon.Error); this.LogError(operationResult.Exception); }
/// <summary> /// Initializes the CoreOperationResult class. /// </summary> static CoreOperationResult() { CoreOperationResult.OK = new CoreOperationResult(null); }