public void CheckUpdateRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (!((bool)e.Result)) { return; } string msg = Processing.GetResourceString("update_available"); StatusItem.Text = msg; StatusItem.FontWeight = FontWeights.Bold; StatusItemHeader.Background = Brushes.Green; StatusItemLink.Click += (s, ev) => { if (ViewControl.Children.Count != 0) { return; } StatusItemHeader.Visibility = Visibility.Collapsed; ToolUpdaterWindow updater = new ToolUpdaterWindow(); ViewControl.Children.Add(updater); }; }
public void CheckUpdateRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (!((bool) e.Result)) return; string msg = Processing.GetResourceString("update_available"); StatusItem.Text = msg; StatusItem.FontWeight = FontWeights.Bold; StatusItemHeader.Background = Brushes.Green; StatusItemLink.Click += (s, ev) => { if (ViewControl.Children.Count != 0) return; StatusItemHeader.Visibility = Visibility.Collapsed; ToolUpdaterWindow updater = new ToolUpdaterWindow(); ViewControl.Children.Add(updater); }; }