private void txtCode_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Space || e.KeyCode == Keys.Enter) { CheckCore.instance().beginCheck(txtCode.Text); } }
private void toolStripButton5_Click(object sender, EventArgs e) { FontDialog fd = new FontDialog(); fd.ShowColor = false; fd.ShowEffects = true; DialogResult dr = fd.ShowDialog(); if (dr == DialogResult.OK) { txtCode.Font = fd.Font; } CheckCore.instance().beginCheck(this.txtCode.Text); }
private void UI_DragDrop(object sender, DragEventArgs e) { this.filename = (e.Data.GetData(DataFormats.FileDrop) as System.Array).GetValue(0).ToString(); OpenFile(); CheckCore.instance().beginCheck(txtCode.Text); }