private async Task DeleteFilter(HtmlFilter filter) { var res = await Show.Window().For(new Confirmation("Are you sure ?")); if (res.Model.Confirmed) { Children.Remove(filter); } }
private async Task NewFilter() { var filter = new HtmlFilter(); var res = await Show.Window().For <HtmlFilter>(filter); if (res.Action is "cancel") { return; } Children.Add(filter); }