Exemplo n.º 1
0
        private void XItemsTabs_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (xItemsTabs.SelectedItem != mLastSelectedTab)
            {
                if (xActionsTab.IsSelected == true)
                {
                    if (mActionsPage == null)
                    {
                        mActionsPage = new ActionsListViewPage(mActivity, mContext, mPageViewMode);
                        if (mActionsPage.ListView != null)
                        {
                            mActionsPage.ListView.ListTitleVisibility = Visibility.Collapsed;
                        }
                        mActionsPage.ShiftToActionEditEvent  += MActionsPage_ShiftToActionEditEvent;
                        mActionsPage.ShiftToActionsListEvent += MActionsPage_ShiftToActionsListEvent;
                        xActionsTabFrame.SetContent(mActionsPage);
                    }
                    else
                    {
                        mActionsPage.UpdateActivity(mActivity);
                    }
                }
                else if (xVariablesTab.IsSelected == true)
                {
                    if (mVariabelsPage == null)
                    {
                        mVariabelsPage = new VariabelsListViewPage(mActivity, mContext, mPageViewMode);
                        if (mVariabelsPage.ListView != null)
                        {
                            mVariabelsPage.ListView.ListTitleVisibility = Visibility.Collapsed;
                        }
                        xVariabelsTabFrame.SetContent(mVariabelsPage);
                    }
                    else
                    {
                        mVariabelsPage.UpdateParent(mActivity);
                    }
                }
                else if (xDetailsTab.IsSelected == true)
                {
                    if (mConfigurationsPage == null)
                    {
                        mConfigurationsPage = new ActivityDetailsPage(mActivity, mContext, mPageViewMode);
                        xConfigurationsFrame.SetContent(mConfigurationsPage);
                    }
                    else
                    {
                        mConfigurationsPage.UpdateActivity(mActivity);
                    }
                }

                mLastSelectedTab = (TabItem)xItemsTabs.SelectedItem;
            }
        }
Exemplo n.º 2
0
        public string ActivityFee(IWebDriver browser, string activityAID)
        {
            string url = string.Format("{0}/activity/{1}/activity.aspx", ConfigurationManager.AppSettings["TestPortalURL"].ToString(), activityAID);

            browser.Navigate().GoToUrl(url);
            ActivityDetailsPage ADP = new ActivityDetailsPage(browser);

            ADP.WaitForInitialize();

            ADP.ResumeSelectBtn.Click();
            PaymentPage PP = new PaymentPage(browser);

            PP.WaitForInitialize();

            return(PP.FeeAmountValueLbl.Text);
        }
Exemplo n.º 3
0
        public bool ActivityAppearingWithAID(IWebDriver browser, string activityAID)
        {
            string url = string.Format("{0}/activity/{1}/activity.aspx", ConfigurationManager.AppSettings["TestPortalURL"].ToString(), activityAID);

            browser.Navigate().GoToUrl(url);

            try
            {
                ActivityDetailsPage page = new ActivityDetailsPage(browser);
                page.WaitForInitialize();
                return(true);
            }
            catch
            {
                return(false);
            }
        }