VAGSuite.frmBrowseFiles.buttonEdit1_KeyDown C# (CSharp) Méthode

buttonEdit1_KeyDown() private méthode

private buttonEdit1_KeyDown ( object sender, KeyEventArgs e ) : void
sender object
e System.Windows.Forms.KeyEventArgs
Résultat void
        private void buttonEdit1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (!loading)
                {
                    LoadFiles();
                }
            }
            else if (e.KeyCode == Keys.Escape)
            {
                if (loading) cancelLoad = true;
            }
        }