public ContractorWindow(Contractor contractor)
 {
     DataContext = new ContractorViewModel(contractor);
     ((ContractorViewModel)DataContext).RequestCloseWindow += (s, e) => Close();
 }
 public ContractorWindow()
 {
     InitializeComponent();
     DataContext = new ContractorViewModel();
     ((ContractorViewModel)DataContext).RequestCloseWindow += (s, e) => Close();
 }