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(); }
public psfhost(frmMain parent) { psfi = new psfhostinterface(parent); }