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); }
/// <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)); }
/// <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); }
public void ClickNewsButton() { logger.Info("Click news button"); NewsButton.Click(); WaitForAMinute(); }