private static bool StateAcknowledgment(string stateCode, string instance, bool closing) { if (stateCode.Length == 2) { StateAntiSteering steering = new StateAntiSteering(); steering.StateCode = stateCode; steering.Instance = instance; if (steering.Execute()) { return(closing ? steering.ClosingAck.Equals("Y") : steering.SteeringAck.Equals("Y")); } } return(false); }
/// <summary> /// Gets the script by state code. /// </summary> static public string GetTextByStateCode(string code, string instance, bool closing) { string results = string.Empty; if (code.Length == 2) { StateAntiSteering steering = new StateAntiSteering(); steering.StateCode = code; steering.Instance = instance; if (steering.Execute()) { results = closing ? steering.ClosingText : steering.SteeringText; } } return(results); }