private void buttonSave_Click(object sender, RoutedEventArgs e) { if (contractorController.ContractorDo()) { Close(); } }
private void buttonDelete_Click(object sender, RoutedEventArgs e) { if (contractorsController.SelectedContractor != null) { contractorController.Contractor = contractorsController.SelectedContractor; contractorController.ContractorDo(); contractorsController.RefreshDataGrid(ref dataGridContractors); } }