コード例 #1
0
        public void Execute(ScriptContext context, Window window)
        {
            var scriptContext = new ESAPIX.Facade.API.ScriptContext(context);

            //When hooked up to bootstrapper (comment out otherwise)
            FacadeInitializer.Initialize();
            //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);
        }
コード例 #2
0
ファイル: VMSBootstrapper.cs プロジェクト: zoulianmp/ESAPIX
 public VMSBootstrapper()
 {
     FacadeInitializer.Initialize();
 }