private void lvTraces_SelectedIndexChanged(object sender, EventArgs e) { if (lvTraces.SelectedItems.Count == 0) { return; } lastSelectedTraceInfo = (TraceInfo)lvTraces.SelectedItems[0].Tag; TraceSelected?.Invoke(this, new TraceSelectedEventArgs(lastSelectedTraceInfo)); }
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { TraceSelected?.Invoke(Traces[cbTrace.SelectedIndex]); this.Close(); }