Beispiel #1
0
 // Показать форму загрузки
 private void CheckLW_Click(object sender, RoutedEventArgs e)
 {
     if (_inProgress == null)
     {
         _inProgress = new InProgress("Удаление")
         {
             Owner = this,
             WindowStartupLocation = WindowStartupLocation.CenterOwner
         };
         _inProgress.Show();
     }
     else
     {
         _inProgress.ChangeMessage("Форматирвание");
         // Задаем владельца формы
         _inProgress.Show();
     }
 }