Esempio n. 1
0
        public BrowsePanel(IEnumerable query, int[] colWidths = null)
        {
            try
            {
                _query     = query;
                _colWidths = colWidths;
                BrowseList = new BrowseList(query, this);
                var listFilter = new ListFilter(BrowseList);
                this.Children.Add(listFilter);
                DockPanel.SetDock(listFilter, Dock.Top);

                this.Children.Add(BrowseList);
            }
            catch (Exception ex) when(ex != null)
            {
                this.Children.Add(new TextBlock()
                {
                    Text = ex.ToString()
                });
            }
        }
Esempio n. 2
0
        internal ListFilter(BrowseList browse)
        {
            _browse = browse;
            var spFilter = new StackPanel {
                Orientation = Orientation.Horizontal, HorizontalAlignment = System.Windows.HorizontalAlignment.Right
            };

            spFilter.Children.Add(_txtStatus);
            spFilter.Children.Add(new Label {
                Content = "StringFilter", ToolTip = "Case insenSitive search in character fields. A filter works on current set"
            });
            spFilter.Children.Add(_txtFilter);
            spFilter.Children.Add(_btnApply);
            _btnApply.Click += (oc, ec) => { On_BtnApply_Click(oc, ec); };
            this.Children.Add(spFilter);
            _txtFilter.KeyUp += (o, e) =>
            {
                if (e.Key == System.Windows.Input.Key.Enter)
                {
                    On_BtnApply_Click(o, e);
                }
            };
            RefreshFilterStat();
        }
Esempio n. 3
0
 public MyValueConverter(BrowseList browseList)
 {
     this.browseList = browseList;
 }