SetFilter() private method

private SetFilter ( string text ) : void
text string
return void
Exemplo n.º 1
0
        void InsertFilterEntry()
        {
            filterEntry = new SearchEntry();
            filterEntry.Entry.SetSizeRequest(200, filterEntry.Entry.SizeRequest().Height);
            filterEntry.SizeAllocated += (o, args) => {
                RepositionFilter();
            };
            ActionArea.PackEnd(filterEntry);
            var btnCloseBoxChild = ((Box.BoxChild)(ActionArea [btnClose]));

            btnCloseBoxChild.Position = 2;
            filterEntry.Show();

            notebook.SizeAllocated += delegate {
                RepositionFilter();
            };
            filterEntry.TextChanged += delegate {
                tree.SetFilter(filterEntry.Text);
                galleryTree.SetFilter(filterEntry.Text);
                updatesTree.SetFilter(filterEntry.Text);
                LoadAll();
                addinTree.ExpandAll();
                galleryTreeView.ExpandAll();
            };
            RepositionFilter();
        }
Exemplo n.º 2
0
 void InsertFilterEntry()
 {
     filterEntry = new SearchEntry();
     filterEntry.Entry.SetSizeRequest(200, filterEntry.Entry.SizeRequest().Height);
     filterEntry.Show();
     notebook.SizeAllocated += delegate {
         RepositionFilter();
     };
     filterEntry.TextChanged += delegate {
         tree.SetFilter(filterEntry.Text);
         galleryTree.SetFilter(filterEntry.Text);
         updatesTree.SetFilter(filterEntry.Text);
         LoadAll();
         addinTree.ExpandAll();
         galleryTreeView.ExpandAll();
     };
     RepositionFilter();
 }