Adding CheckAll and UncheckAllTags methods

This commit is contained in:
FlorianDahn 2021-07-26 01:23:31 +02:00
parent f28c9b1e22
commit 5f49e25458

View File

@ -845,8 +845,27 @@ namespace TelegramBotBase.Controls.Hybrid
}
/// <summary>
/// Checks all tags for filtering.
/// </summary>
public void CheckAllTags()
{
this.SelectedTags.Clear();
this.SelectedTags = this.Tags.Select(a => a).ToList();
this.Updated();
}
/// <summary>
/// Unchecks all tags for filtering.
/// </summary>
public void UncheckAllTags()
{
this.SelectedTags.Clear();
this.Updated();
}
}