Пример #1
0
 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);
 }
Пример #2
0
        /// <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);
        }