コード例 #1
0
 private void XNavPOM_Click(object sender, RoutedEventArgs e)
 {
     if (mPOMNavPage == null)
     {
         mPOMNavPage = new POMNavPage(mContext);
     }
     LoadActionFrame(mPOMNavPage, "Page Objects Model", eImageType.ApplicationPOMModel);
 }
コード例 #2
0
 public void ResetAddActionPages()
 {
     this.Dispatcher.Invoke(() =>
     {
         mRecordPage = null;
         mSharedRepositoryNavPage = null;
         mPOMNavPage             = null;
         mActionsLibraryNavPage  = null;
         mLiveSpyNavPage         = null;
         mWindowsExplorerNavPage = null;
         mAPINavPage             = null;
     });
 }
コード例 #3
0
        /// <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);
            }
        }