UI rendberakása
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user