void successSave(Reports.BuyerPeriod buyerPeriod)
 {
     loadingProgress.Visibility = Visibility.Hidden;
     MessageBox.Show("Список покупателей сохранен по пути " + buyerPeriod.FileName);
     System.Diagnostics.Process.Start(System.IO.Path.GetDirectoryName(buyerPeriod.FileName));
     Close();
 }
 void errorSave(Reports.BuyerPeriod buyerPeriod)
 {
     loadingProgress.Visibility = Visibility.Hidden;
     MessageBox.Show(buyerPeriod.LastError);
 }