private void ButtonCreateLandlord_Click(object sender, RoutedEventArgs e)
        {
            var landLord = new LandlordDTO();
            var window   = new CRULandLordWindow(landLord, CRUMode.Create);

            window.Title             = "Create Landlord";
            window.CRUButton.Content = "Create";
            var result = window.ShowDialog();

            if (result.HasValue && result.Value)
            {
                dataProvider.CreateLandLord(landLord);
                RefreshLandlords();
            }
        }
        private void ButtonUpdateLandlord_Click(object sender, RoutedEventArgs e)
        {
            if (LandlordsDataGrid.SelectedItem is LandlordDTO selectedLandlord)
            {
                var copy   = new LandlordDTO(selectedLandlord);
                var window = new CRULandLordWindow(copy, CRUMode.Update);

                var result = window.ShowDialog();

                if (result.HasValue && result.Value)
                {
                    dataProvider.UpdateLandLord(copy);
                    RefreshLandlords();
                }
            }
        }