Example #1
0
 /// <summary>
 /// If there are any registered handlers, call them now with message.
 /// </summary>
 /// <param name="message"></param>
 private void OnMessageEventLogged(String message, Globals.targetSStrip target)
 {
     if (MessageEventLogged != null)
     {
         MessageEventLogged(message, target);
     }
 }
Example #2
0
 public string SetOperation(Globals.Operations operation)
 {
     _operation = operation;
     UpdateString();
     return strExpressionString;
 }
Example #3
0
 /// <summary>
 /// Here is the main API. Log message as indicated. Method will 
 /// prepend date and time and append NewLine to message.
 /// </summary>
 /// <param name="message"></param>
 /// <param name="intent"></param>
 public void LogEvent(String message, Globals.messageIntent intent, Globals.targetSStrip target)
 {
     if (intent == Globals.messageIntent.LogFileOnly)
     {
         LogEvent(message, 0); //call the method that will
     }
     else if (intent == Globals.messageIntent.UserAndLogFile)
     {
         LogEvent(message, 0);
         OnMessageEventLogged(message, target);
     }
     else if (intent == Globals.messageIntent.UserOnly)
     {
         OnMessageEventLogged(message, target);
     }
 }
Example #4
0
 public Expression(Globals.Operations operation)
 {
     _operation = operation;
     lstVariables = new List<string>();
 }