BUGFIX mentés, scrollozás
This commit is contained in:
@@ -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/";
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user