Remove onShowDeletedChanged function

This commit is contained in:
Andrei Zavatski 2019-10-15 11:30:50 +03:00
parent b2885e7b13
commit 213f00556d
1 changed files with 5 additions and 7 deletions

View File

@ -244,17 +244,15 @@ public DrawableComment(Comment comment)
protected override void LoadComplete() protected override void LoadComplete()
{ {
ShowDeleted.BindValueChanged(onShowDeletedChanged, true); ShowDeleted.BindValueChanged(show =>
{
if (comment.IsDeleted)
this.FadeTo(show.NewValue ? 1 : 0);
}, true);
childrenExpanded.BindValueChanged(expanded => childCommentsVisibilityContainer.FadeTo(expanded.NewValue ? 1 : 0), true); childrenExpanded.BindValueChanged(expanded => childCommentsVisibilityContainer.FadeTo(expanded.NewValue ? 1 : 0), true);
base.LoadComplete(); base.LoadComplete();
} }
private void onShowDeletedChanged(ValueChangedEvent<bool> show)
{
if (comment.IsDeleted)
this.FadeTo(show.NewValue ? 1 : 0);
}
private class ChevronButton : ShowChildrenButton private class ChevronButton : ShowChildrenButton
{ {
private readonly SpriteIcon icon; private readonly SpriteIcon icon;