Exemplo n.º 1
0
		public Present Evaluate(Present[] paramList)
		{
			StringParameter stringParameter = (StringParameter)paramList[0];
			IntParameter intParameter = (IntParameter)paramList[1];
			D.Assert(paramList.Length == 2);
			D.Assert(intParameter.value == 0);
			Present result;
			try
			{
				result = new GDIOpenDocument(stringParameter.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);
            D.Assert(intParameter.value == 0);
            Present result;

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