From affad21ab00b6aa98c51e323b823982b01dd6e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Szab=C3=B3?= Date: Thu, 3 Jul 2025 08:55:09 +0200 Subject: [PATCH] =?UTF-8?q?BUGFIX=20ment=C3=A9s,=20scrolloz=C3=A1s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WorkFlowCheck.MAUI/Helper/SystemHelper.cs | 2 +- .../Pages/CheckList/CheckListWorkPage.xaml.cs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/WorkFlowCheck.MAUI/Helper/SystemHelper.cs b/src/WorkFlowCheck.MAUI/Helper/SystemHelper.cs index ef2c97f..8c5683e 100644 --- a/src/WorkFlowCheck.MAUI/Helper/SystemHelper.cs +++ b/src/WorkFlowCheck.MAUI/Helper/SystemHelper.cs @@ -19,7 +19,7 @@ namespace WorkFlowCheck.MAUI.Helper public static string DatabaseName = ""; public static bool Syncronised = false; public static UserDTO SystemUserDTO; - public static string ProgramVersion = "v1.1.036"; + public static string ProgramVersion = "v1.1.038"; #if DEBUG //public static string ApiBaseUrl = $"http://10.0.2.2:59027/"; diff --git a/src/WorkFlowCheck.MAUI/Pages/CheckList/CheckListWorkPage.xaml.cs b/src/WorkFlowCheck.MAUI/Pages/CheckList/CheckListWorkPage.xaml.cs index 34cb585..537d61d 100644 --- a/src/WorkFlowCheck.MAUI/Pages/CheckList/CheckListWorkPage.xaml.cs +++ b/src/WorkFlowCheck.MAUI/Pages/CheckList/CheckListWorkPage.xaml.cs @@ -124,11 +124,11 @@ public partial class CheckListWorkPage : ContentPage if (checkListRowDTO != null) { - if (checkListRowDTO.AnswerYes == true) + if (checkListRowCS.AnswerYes == true) { checkListRowDTO.Answer = "Igen"; } - if (checkListRowDTO.AnswerNo == true) + if (checkListRowCS.AnswerNo == true) { checkListRowDTO.Answer = "Nem"; } @@ -274,12 +274,12 @@ public class BindableRadioButton : RadioButton } 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") - dto.Answer = "Igen"; + checkListRowCS.Answer = "Igen"; else if (Value?.ToString() == "Nem") - dto.Answer = "Nem"; + checkListRowCS.Answer = "Nem"; } } @@ -287,12 +287,12 @@ public class BindableRadioButton : RadioButton { base.OnBindingContextChanged(); - if (BindingContext is CheckListRowDTO dto) + if (BindingContext is CheckListRowCS checkListRowCS) { if (Value?.ToString() == "Igen") - IsChecked = dto.Answer == "Igen"; + IsChecked = checkListRowCS.Answer == "Igen"; else if (Value?.ToString() == "Nem") - IsChecked = dto.Answer == "Nem"; + IsChecked = checkListRowCS.Answer == "Nem"; } } }