public void Execute(dynamic context, Window window) { var scriptContext = new ESAPIX.Facade.API.ScriptContext(context); //Get this window barely visible so that when it does show, it isn't ugly ;) window.Height = window.Width = 0; window.WindowStyle = WindowStyle.None; window.Hide(); window.Loaded += Window_Loaded; var plugCtx = new PluginContext(scriptContext, window); var frame = new DispatcherFrame(); XContext.Instance.CurrentContext = plugCtx; XExecute(plugCtx, frame); Dispatcher.PushFrame(frame); }
public abstract void XExecute(PluginContext ctx, Window w);
public void Execute(ScriptContext context, Window window) { var plugCtx = new PluginContext(context, window); XExecute(plugCtx, window); }
public abstract void XExecute(PluginContext ctx, DispatcherFrame frame);