private void NewsButton_MouseDown(object sender, MouseButtonEventArgs e)
 {
     TaskButton.UpdateColorToStart();
     NewsButton.UpdateColorToEnd();
     Items.ItemsSource = ((UserViewModels)DataContext).NormalUsers;
     BindingOperations.DisableCollectionSynchronization(((UserViewModels)DataContext).Admins);
     BindingOperations.EnableCollectionSynchronization(((UserViewModels)DataContext).NormalUsers, Items.ItemsSource);
 }
Пример #2
0
        /// <summary>
        /// Clicks the news navigation button.
        /// </summary>
        /// <returns>The expected <see cref="NewsPage"/> that should result from this action.</returns>
        public NewsPage ClickNews()
        {
            WaitForLoad();

            NewsButton.Click();

            return(new NewsPage(Helper.NewsPage.AbsoluteUri, Helper.NewsPageTitle));
        }
Пример #3
0
 /// <summary>
 /// Click the news button on the toolbar
 /// </summary>
 public void ClickNews()
 {
     NewsButton.WaitAndClick(_driver);
 }
 private void NewsButton_MouseDown(object sender, MouseButtonEventArgs e)
 {
     TaskButton.UpdateColorToStart();
     NewsButton.UpdateColorToEnd();
     this.DataContext = new NewsViewModels(true);
 }
Пример #5
0
 public void ClickNewsButton()
 {
     logger.Info("Click news button");
     NewsButton.Click();
     WaitForAMinute();
 }