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));
        }
示例#2
0
 private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
 {
     TraceSelected?.Invoke(Traces[cbTrace.SelectedIndex]);
     this.Close();
 }