Esempio n. 1
0
        public void ReLoadPageItems()
        {
            if (mContext.Agent != null)
            {
                mDriver = mContext.Agent.Driver as IWindowExplorer;
                LoadLiveSpyPage(mContext);
            }
            else
            {
                mDriver = null;
            }

            mCurrentLoadedPage.SetDriver(mDriver);
        }
Esempio n. 2
0
        /// <summary>
        /// Context Property changed event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Context_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            if (e.PropertyName == nameof(Context.AgentStatus) || e.PropertyName == nameof(Context.Agent))
            {
                if (mContext.Agent != null)
                {
                    mDriver = mContext.Agent.Driver as IWindowExplorer;
                }
                else
                {
                    mDriver = null;
                }

                if (e.PropertyName == nameof(Context.Agent) && mContext.Agent != null)
                {
                    LoadLiveSpyPage(mContext);
                }
                else
                {
                    mCurrentLoadedPage.SetDriver(mDriver);
                }
            }
        }