private void AddBuildingButtonOnClick(object sender, RoutedEventArgs e)
        {
            int      lastBuildingNumber = Controller.Context.Buildings.OrderBy(b => b.Id).LastOrDefault()?.Id ?? 0;
            Building building           = new Building {
                BuildingName = $"{lastBuildingNumber + 1}"
            };
            EditBuildingWindow editBuildingWindow = new EditBuildingWindow(Controller, building)
            {
                Owner = this
            };

            Hide();
            editBuildingWindow.ShowDialog();
            ShowDialog();
        }
        private void EditBuildingOnMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Building building = GetBuilding(sender);

            if (building == null)
            {
                return;
            }
            EditBuildingWindow editBuildingWindow = new EditBuildingWindow(Controller, building)
            {
                Owner = this
            };

            Hide();
            editBuildingWindow.ShowDialog();
            ShowDialog();
        }