Exemple #1
0
 private void XNavPOM_Click(object sender, RoutedEventArgs e)
 {
     if (mPOMNavPage == null)
     {
         mPOMNavPage = new POMNavPage(mContext);
     }
     LoadActionFrame(mPOMNavPage, "Page Objects Model", eImageType.ApplicationPOMModel);
 }
 public void ResetAddActionPages()
 {
     this.Dispatcher.Invoke(() =>
     {
         mRecordPage = null;
         mSharedRepositoryNavPage = null;
         mPOMNavPage             = null;
         mActionsLibraryNavPage  = null;
         mLiveSpyNavPage         = null;
         mWindowsExplorerNavPage = null;
         mAPINavPage             = null;
     });
 }
        /// <summary>
        /// sets nav page depending on context
        /// </summary>
        private void SetNavPage()
        {
            bool POMCompliantPlatform = ApplicationPOMModel.PomSupportedPlatforms.Contains(mContext.Platform);
            bool APICompliantPlatform = mContext.Platform == ePlatformType.WebServices;

            if (POMCompliantPlatform)
            {
                if (mPOMNavPage == null)
                {
                    mPOMNavPage = new POMNavPage(mContext);
                }
                LoadActionFrame(mPOMNavPage, "Page Objects Model", eImageType.ApplicationPOMModel);
            }
            else if (APICompliantPlatform)
            {
                if (mAPINavPage == null)
                {
                    mAPINavPage = new APINavPage(mContext);
                }
                LoadActionFrame(mAPINavPage, "API Models", eImageType.APIModel);
            }
        }