public LZWPage(Frame navigationFrame) { this.InitializeComponent(); this.navigationFrame = navigationFrame; this.worker = new BackgroundWorker(); this.worker.DoWork += this.DoCompressionAsync; this.worker.RunWorkerCompleted += this.DoCompressionCompleted; this.CompressionStatus.Visibility = Visibility.Visible; this.NoConnection.Visibility = Visibility.Visible; if (InternetAvailability.GetIsInternetAvailable()) { this.InfoFrame.Navigate(new Uri("https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch", UriKind.Absolute)); this.NoConnection.Visibility = Visibility.Collapsed; this.CompressionStatus.Visibility = Visibility.Collapsed; } else { this.NoConnection.Visibility = Visibility.Visible; this.CompressionStatus.Visibility = Visibility.Collapsed; } this.ToggleComponents(true, false); }
public ACPage(Frame navigationFrame) { this.InitializeComponent(); this.navigationFrame = navigationFrame; this.worker = new BackgroundWorker(); this.worker.DoWork += this.DoCodingAsync; this.worker.RunWorkerCompleted += this.DoCodingCompleted; this.CodingStatus.Visibility = Visibility.Collapsed; if (InternetAvailability.GetIsInternetAvailable()) { this.InfoFrame.Navigate(new Uri("https://en.wikipedia.org/wiki/Arithmetic_coding", UriKind.Absolute)); this.NoConnection.Visibility = Visibility.Collapsed; } else { this.NoConnection.Visibility = Visibility.Visible; } this.ToggleComponents(true, false); }