VAGSuite.MapViewerEx.toolStripComboBox3_KeyDown C# (CSharp) Метод

toolStripComboBox3_KeyDown() приватный Метод

private toolStripComboBox3_KeyDown ( object sender, KeyEventArgs e ) : void
sender object
e KeyEventArgs
Результат void
        private void toolStripComboBox3_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                // see if there's a selection being made
                gridView1.ClearSelection();
                string strValue = toolStripComboBox3.Text;
                char[] sep = new char[1];
                sep.SetValue(' ', 0);
                string[] strValues = strValue.Split(sep);
                foreach (string strval in strValues)
                {
                    double dblres;
                    if (Double.TryParse(strval, out dblres))
                    {
                        SelectCellsWithValue(dblres);
                    }
                }
                gridView1.Focus();

            }
        }
MapViewerEx