void tlvDatasets_CellClick(object sender, CellClickEventArgs e) { if (e.Column == olvState) { var notifier = GetCheckNotifier(e.Model); if (notifier == null) { return; } var popup = new PopupChecksUI(e.Model.ToString(), false); popup.Check(new ReplayCheckable(notifier)); } }
protected override void OnClick(EventArgs e) { if (_events.Messages.Any()) { var popup = new PopupChecksUI("Exceptions", false); popup.Check(new ReplayCheckable(_events)); popup.FormClosed += (s, ea) => { _events = new ToMemoryCheckNotifier(); Enabled = false; Invalidate(); }; } }