示例#1
0
 private void InitializeScript()
 {
     rspaceconfig  = RunspaceConfiguration.Create();
     host          = new psfhost(frm);
     hostinterface = (psfhostinterface)host.UI;
     hostinterface.WriteProgressUpdate += WriteProgressUpdate;
     hostinterface.WriteUpdate         += WriteUpdate;
     rspace = RunspaceFactory.CreateRunspace(host, rspaceconfig);
     rspace.Open();
     InitializeSessionVars();
 }
示例#2
0
 private void InitializeScript()
 {
     rspaceconfig = RunspaceConfiguration.Create();
     host = new psfhost(frm);
     hostinterface = (psfhostinterface)host.UI;
     hostinterface.WriteProgressUpdate += WriteProgressUpdate;
     hostinterface.WriteUpdate += WriteUpdate;
     rspace = RunspaceFactory.CreateRunspace(host, rspaceconfig);
     rspace.Open();
     InitializeSessionVars();
 }
示例#3
0
 public psfhost(frmMain parent)
 {
     psfi = new psfhostinterface(parent);
 }
示例#4
0
 public psfhost(frmMain parent)
 {
     psfi = new psfhostinterface(parent);
 }