UI rendberakása

This commit is contained in:
2025-04-11 10:55:40 +02:00
parent 9d107e8c0b
commit 6d276e73b8
15 changed files with 273 additions and 21 deletions
@@ -168,13 +168,13 @@ public partial class CheckListPage : ContentPage
}
public class BlockedVisibleConverter : IValueConverter
public class BlockedConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is CheckStatus status)
{
return status == CheckStatus.Blocked;
return status == CheckStatus.InProgress;
}
return false;
}
@@ -184,13 +184,33 @@ public class BlockedVisibleConverter : IValueConverter
throw new NotImplementedException();
}
}
public class BlockedHideConverter : IValueConverter
public class UnBlockedConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is CheckStatus status)
{
if (status == CheckStatus.Open || status == CheckStatus.InProgress)
if (status == CheckStatus.Blocked)
{
return true;
}
return false;
}
return false;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
public class ContinueConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is CheckStatus status)
{
if (status == CheckStatus.InProgress || status == CheckStatus.Open)
{
return true;
}