private void LogMain_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.F) { FrmLogFind.Close(); FrmLogFind = new LogFind(this); FrmLogFind.Show(); } if (e.KeyCode == Keys.F3) { if (FrmLogFind.Visible) { FrmLogFind.Find(); } } if (e.KeyCode == Keys.F4) { if (FrmLogFind.Visible) { FrmLogFind.FindNext(); } } if (e.Control && e.KeyCode == Keys.S) { int iIdx = tabControl1.SelectedIndex; if (iIdx >= 0 && iIdx < m_iMaxArray) { lst[iIdx].SaveData(); } } //if (e.Control && e.KeyCode == Keys.C) //{ // int iIdx = tabControl1.SelectedIndex; // ListView.SelectedListViewItemCollection breakfast = lst[iIdx].Lsv.SelectedItems; // string sTemp = ""; // if (breakfast.Count > 1000) return; // foreach (ListViewItem item in breakfast) // { // for (int j = 0; j < item.SubItems.Count; j++) sTemp += item.SubItems[j].Text + ", "; // sTemp += "\r\n"; // Clipboard.SetText(sTemp); // } //} if (e.KeyCode == Keys.Escape) { //notifyIcon1.Visible = true; Hide(); } }
private void fINDToolStripMenuItem_Click(object sender, EventArgs e) { FrmLogFind.Close(); FrmLogFind = new LogFind(this); FrmLogFind.Show(); }