private void SearchButton_Click(object sender, EventArgs e) { var o = (TraceListItem)m_TraceList.SelectedObject; var w = new RangeQueryWindow(o.FileName); w.Show(); }