/// <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); } }
public string SetOperation(Globals.Operations operation) { _operation = operation; UpdateString(); return strExpressionString; }
/// <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); } }
public Expression(Globals.Operations operation) { _operation = operation; lstVariables = new List<string>(); }