Exemplo n.º 1
0
        private void TabItemPanel_Initialized(object sender, EventArgs e)
        {
            List.SelectionChanged += List_SelectionChanged;

            SelectorHelper         = new SelectorHelper <T>(List, Items);
            SelectorHelper.Delete += async(p1, p2) => await DbHelper.DeleteAsync(p2);

            SelectorHelper.Clone += async(p1, p2) => Items.Add(await DbHelper.CloneAsync(p2));
            SelectorHelper.SetContextMenu();
        }
Exemplo n.º 2
0
        public CookieWindow(WebPage webPage)
        {
            InitializeComponent();
            this.webPage = webPage;
            if (webPage.Request_Cookies == null)
            {
                return;
            }
            var helper = new SelectorHelper <Cookie>(lvw, Cookies);

            helper.SetContextMenu();
            Reset();
        }