Example #1
0
        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);
        }
Example #2
0
 /// <summary>
 /// Initializes the CoreOperationResult class.
 /// </summary>
 static CoreOperationResult()
 {
     CoreOperationResult.OK = new CoreOperationResult(null);
 }
Example #3
0
        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);
 }