private void m_pLogSessions_DoubleClick(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; if (m_pLogSessions.SelectedItems.Count > 0) { LogSession logSession = (LogSession)m_pLogSessions.SelectedItems[0].Tag; wfrm_LogViewer frm = new wfrm_LogViewer(logSession.LogText, m_pContainsText.Text); frm.ShowDialog(this); } this.Cursor = Cursors.Default; }
private void m_pLogSessions_DoubleClick(object sender,EventArgs e) { this.Cursor = Cursors.WaitCursor; if(m_pLogSessions.SelectedItems.Count > 0){ LogSession logSession = (LogSession)m_pLogSessions.SelectedItems[0].Tag; wfrm_LogViewer frm = new wfrm_LogViewer(logSession.LogText,m_pContainsText.Text); frm.ShowDialog(this); } this.Cursor = Cursors.Default; }