Skip to content

Commit

Permalink
Bugfix: Trim Gruppenname und Feuerwehr vor dem Speichern
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianJ committed May 24, 2024
1 parent 960ce96 commit adcad31
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions BWB-Auswertung/Models/Gruppe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,48 @@ public class Gruppe : INotifyPropertyChanged
{
public int? StartNr { get; set; }

public required string Feuerwehr { get; set; }
private string _feuerwehr = string.Empty;
private string _gruppenName = string.Empty;
private string? _organisationseinheit;

public required string GruppenName { get; set; }
public required string Feuerwehr
{
get { return _feuerwehr; }
set
{
if (_feuerwehr != value?.Trim())
{
_feuerwehr = value.Trim();
OnPropertyChanged();
}
}
}

public string? Organisationseinheit { get; set; }
public required string GruppenName
{
get { return _gruppenName; }
set
{
if (_gruppenName != value?.Trim())
{
_gruppenName = value.Trim();
OnPropertyChanged();
}
}
}

public string? Organisationseinheit
{
get { return _organisationseinheit; }
set
{
if (_organisationseinheit != value?.Trim())
{
_organisationseinheit = value?.Trim();
OnPropertyChanged();
}
}
}

public int? Platz { get; set; }
public bool? OhneWertung { get; set; }
Expand Down

0 comments on commit adcad31

Please sign in to comment.