Exemple #1
0
        protected override CalculatorValue OnCalc(IList <CalculatorValue> operands)
        {
            string file = operands[0].AsString;
            string info = operands[1].AsString;

            ScriptProcessor.BeginFile(file, info);
            return(0);
        }
Exemple #2
0
        protected override object OnCalc(IList <object> operands, object[] args)
        {
            string file = operands[0] as string;
            string info = operands[1] as string;

            ScriptProcessor.BeginFile(file, info);
            return(0);
        }
Exemple #3
0
 protected override object OnCalc(IList <object> operands)
 {
     if (operands.Count > 2)
     {
         string file = operands[0] as string;
         uint   size = (uint)Convert.ChangeType(operands[1], typeof(uint));
         string info = operands[2] as string;
         ScriptProcessor.BeginFile(file, size, info);
     }
     return(0);
 }
Exemple #4
0
 protected override object OnCalc(IList <object> operands)
 {
     if (operands.Count > 1)
     {
         string file = operands[0] as string;
         string info = operands[1] as string;
         if (!string.IsNullOrEmpty(file) && null != info)
         {
             ScriptProcessor.BeginFile(file, info);
         }
     }
     return(0);
 }