コード例 #1
0
 /// <summary>
 /// Sets the script argument data from the supplied composite collection
 /// consisting of multiple collection containers consisting of
 /// observable objects.
 /// </summary>
 /// <param name="scriptVariables"></param>
 public void SetScriptParameters(CompositeCollection scriptVariables)
 {
     foreach (CollectionContainer collection in scriptVariables)
     {
         foreach (ScriptArgument arg in collection.Collection)
         {
             string argKey   = arg.InputKey.ToString().ToLower();
             string argValue = arg.InputValue.ToString();
             CommandLineArgumentKeys.Add(argKey);
             CommandLineArguments.Add(argValue);
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Clears stored data, excludes the scriptoutput.
 /// </summary>
 public void ClearSession()
 {
     CommandLineArgumentKeys.Clear();
     CommandLineArguments.Clear();
 }