private void AddBuilding(object sender, RoutedEventArgs e) { var addBuildingsWindow = new AddEditBuildingWindow(); addBuildingsWindow.Show(); Close(); }
private void EditBuilding(object sender, RoutedEventArgs e) { var editBuilding = (BuildingModel)((Button)sender).Tag; var addBuildingsWindow = new AddEditBuildingWindow(editBuilding); addBuildingsWindow.Show(); Close(); }