Beispiel #1
0
 void EdSearchKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Modifiers == Keys.Control && (e.KeyValue == 66 || e.KeyValue == 68))                 // 'b' 'd' dark
     {
         m_Image.DarkPic();
     }
     if (e.KeyCode == Keys.Enter)
     {
         m_Image.NextSearchPic(edSearch.Text);
     }
     if (e.KeyCode == Keys.Left)
     {
         m_Image.PriorSearchPic(edSearch.Text);
     }
     if (e.KeyCode == Keys.Right)
     {
         m_Image.NextSearchPic(edSearch.Text);
     }
 }