Example #1
0
        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);
        }
Example #2
0
 public abstract void XExecute(PluginContext ctx, Window w);
Example #3
0
        public void Execute(ScriptContext context, Window window)
        {
            var plugCtx = new PluginContext(context, window);

            XExecute(plugCtx, window);
        }
Example #4
0
 public abstract void XExecute(PluginContext ctx, DispatcherFrame frame);