first build possible
This commit is contained in:
@@ -55,18 +55,18 @@ public partial class AddGroupDialogViewModel : ObservableObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
[RelayCommand]
|
[RelayCommand]
|
||||||
private bool Save()
|
private void Save()
|
||||||
{
|
{
|
||||||
// Validierung
|
// Validierung
|
||||||
if (string.IsNullOrWhiteSpace(Name))
|
if (string.IsNullOrWhiteSpace(Name))
|
||||||
{
|
{
|
||||||
ValidationMessage = "Bitte einen Namen eingeben.";
|
ValidationMessage = "Bitte einen Namen eingeben.";
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
if (GradeLevel is < 1 or > 13)
|
if (GradeLevel is < 1 or > 13)
|
||||||
{
|
{
|
||||||
ValidationMessage = "Klassenstufe muss zwischen 1 und 13 liegen.";
|
ValidationMessage = "Klassenstufe muss zwischen 1 und 13 liegen.";
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result = new LearningGroup
|
Result = new LearningGroup
|
||||||
@@ -82,7 +82,6 @@ public partial class AddGroupDialogViewModel : ObservableObject
|
|||||||
|
|
||||||
_groups.Save(Result);
|
_groups.Save(Result);
|
||||||
ValidationMessage = "";
|
ValidationMessage = "";
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class PlainSyncEvent
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Antwort auf einen Plain-Push.
|
/// Antwort auf einen Plain-Push.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class PlainPushResponse
|
public record class PlainPushResponse
|
||||||
{
|
{
|
||||||
public bool Success { get; init; }
|
public bool Success { get; init; }
|
||||||
public long ServerSequenceNr { get; init; }
|
public long ServerSequenceNr { get; init; }
|
||||||
|
|||||||
Reference in New Issue
Block a user