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(); }
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(); }
void InsertFilterEntry() { filterEntry = new SearchEntry (); filterEntry.Entry.SetSizeRequest (200, filterEntry.Entry.SizeRequest ().Height); filterEntry.Parent = notebook; 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 (); }