예제 #1
0
        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);
            };
        }
예제 #2
0
        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);
                };
        }