示例#1
0
        private async Task DeleteFilter(HtmlFilter filter)
        {
            var res = await Show.Window().For(new Confirmation("Are you sure ?"));

            if (res.Model.Confirmed)
            {
                Children.Remove(filter);
            }
        }
示例#2
0
        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);
        }