Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            formAdd = new TestFormAdd();
            formAdd.ShowDialog();

            UpdateList();
        }
Пример #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            server.SendMsg("GetTestsPath", Data.ServiceSel);
            TestFormAdd formAdd = new TestFormAdd();

            formAdd.ShowDialog();

            bw                     = new BackgroundWorker();
            wait.Opacity           = 1;
            this.IsEnabled         = false;
            DocListView.Visibility = Visibility.Hidden;
            bw.DoWork             += (obj, ea) => {
                UpdateList();
            };
            bw.RunWorkerAsync();
            bw.RunWorkerCompleted += (obj, ea) => {
                wait.Opacity            = 0;
                this.IsEnabled          = true;
                DocListView.Visibility  = Visibility.Visible;
                DocListView.ItemsSource = Items;
            };
        }