public RowStoreControl(Control container, DiagContext context, TrackedStore store) { Container = container; Context = context; Store = store; SearchBox = new TextBox() { Parent = container, Bounds = new Rectangle(10, 10, 150, 20), }; SearchBox.TextChanged += SearchBox_TextChanged; ListView = ControlUpdater <string> .CreateListView(container); ListView.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom; ListView.Bounds = new Rectangle(Container.ClientRectangle.Left, Container.ClientRectangle.Top + 40, Container.ClientRectangle.Width, Container.ClientRectangle.Height - 40); ListView.FormatCell += ListView_FormatCell; ListView.UseCellFormatEvents = true; ListView.AllColumns.Add(new OLVColumn() { Text = "ID", AspectGetter = x => (x as StoredRowModel)?.RowUid, }); ListView.AllColumns.Add(new OLVColumn() { Text = "Process", AspectGetter = x => (x as StoredRowModel).ProcessName, }); ListView.Columns.AddRange(ListView.AllColumns.ToArray()); _fixColumnCount = ListView.Columns.Count; }
private void OnRowStoreStarted(Playbook playbook, TrackedStore store) { _updater.AddItem(store); }
private bool ItemFilter(TrackedStore store) { return(true); }