Serializable, Set parameter of current ParameterDic to Explorer.CommandManager's, so when it run a script it can use that parameter.

explorer.ViewModel.Commands.Execute(
      ScriptCommands.Assign("{LastEdit}", DateTime.Now, false,
             ScriptCommands.Assign("{Today}", DateTime.Now.DayOfWeek, false,
                     UIScriptCommands.ExplorerAssignScriptParameters("{Explorer}", "{LastEdit},{Today}"))));
//LastEdit and Today stored in Explorer's internal ParameterDic.

cmd = UIScriptCommands.MessageBoxOK("ExplorerAssignScriptParameters", "LastEdit = {LastEdit}, Today = {Today}");
 explorer.ViewModel.Commands.ExecuteAsync(cmd, pd1);

Sourcecode

Last edited Oct 21, 2014 at 8:06 AM by lycj, version 1

Comments

No comments yet.