Exemplo n.º 1
0
		public Present Evaluate(Present[] paramList)
		{
			StringParameter stringParameter = (StringParameter)paramList[0];
			IntParameter intParameter = (IntParameter)paramList[1];
			D.Assert(paramList.Length == 2);
			Present result;
			try
			{
				result = new FoxitOpenDocument(stringParameter.value, intParameter.value);
			}
			catch (Exception ex)
			{
				result = new PresentFailureCode(ex);
			}
			return result;
		}
Exemplo n.º 2
0
        public Present Evaluate(Present[] paramList)
        {
            StringParameter stringParameter = (StringParameter)paramList[0];
            IntParameter    intParameter    = (IntParameter)paramList[1];

            D.Assert(paramList.Length == 2);
            Present result;

            try
            {
                result = new FoxitOpenDocument(stringParameter.value, intParameter.value);
            }
            catch (Exception ex)
            {
                result = new PresentFailureCode(ex);
            }
            return(result);
        }