/// <summary>Un hides one or more updates and navigates to the Main page.</summary> /// <param name="sender">The object that called the event.</param> /// <param name="e">The <c>System.Windows.RoutedEventArgs</c> instance containing the event data.</param> void RestoreUpdate(object sender, RoutedEventArgs e) { for (int x = 0; x < this.hiddenUpdates.Count; x++) { if (this.hiddenUpdates[x].Status != UpdateStatus.Visible) { continue; } this.hiddenUpdates.RemoveAt(x); x--; } if (WcfService.HideUpdates(this.hiddenUpdates)) { if (RestoredHiddenUpdate != null) { RestoredHiddenUpdate(this, new EventArgs()); } } Core.NavigateToMainPage(); }