BUGFIX mentés, scrollozás

This commit is contained in:
2025-07-03 08:55:09 +02:00
parent a646258837
commit affad21ab0
2 changed files with 9 additions and 9 deletions
@@ -19,7 +19,7 @@ namespace WorkFlowCheck.MAUI.Helper
public static string DatabaseName = ""; public static string DatabaseName = "";
public static bool Syncronised = false; public static bool Syncronised = false;
public static UserDTO SystemUserDTO; public static UserDTO SystemUserDTO;
public static string ProgramVersion = "v1.1.036"; public static string ProgramVersion = "v1.1.038";
#if DEBUG #if DEBUG
//public static string ApiBaseUrl = $"http://10.0.2.2:59027/"; //public static string ApiBaseUrl = $"http://10.0.2.2:59027/";
@@ -124,11 +124,11 @@ public partial class CheckListWorkPage : ContentPage
if (checkListRowDTO != null) if (checkListRowDTO != null)
{ {
if (checkListRowDTO.AnswerYes == true) if (checkListRowCS.AnswerYes == true)
{ {
checkListRowDTO.Answer = "Igen"; checkListRowDTO.Answer = "Igen";
} }
if (checkListRowDTO.AnswerNo == true) if (checkListRowCS.AnswerNo == true)
{ {
checkListRowDTO.Answer = "Nem"; checkListRowDTO.Answer = "Nem";
} }
@@ -274,12 +274,12 @@ public class BindableRadioButton : RadioButton
} }
private void OnCheckedChangedInternal(object sender, CheckedChangedEventArgs e) private void OnCheckedChangedInternal(object sender, CheckedChangedEventArgs e)
{ {
if (e.Value && BindingContext is CheckListRowDTO dto) if (e.Value && BindingContext is CheckListRowCS checkListRowCS)
{ {
if (Value?.ToString() == "Igen") if (Value?.ToString() == "Igen")
dto.Answer = "Igen"; checkListRowCS.Answer = "Igen";
else if (Value?.ToString() == "Nem") else if (Value?.ToString() == "Nem")
dto.Answer = "Nem"; checkListRowCS.Answer = "Nem";
} }
} }
@@ -287,12 +287,12 @@ public class BindableRadioButton : RadioButton
{ {
base.OnBindingContextChanged(); base.OnBindingContextChanged();
if (BindingContext is CheckListRowDTO dto) if (BindingContext is CheckListRowCS checkListRowCS)
{ {
if (Value?.ToString() == "Igen") if (Value?.ToString() == "Igen")
IsChecked = dto.Answer == "Igen"; IsChecked = checkListRowCS.Answer == "Igen";
else if (Value?.ToString() == "Nem") else if (Value?.ToString() == "Nem")
IsChecked = dto.Answer == "Nem"; IsChecked = checkListRowCS.Answer == "Nem";
} }
} }
} }