示例#1
0
 private void txtCode_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Space || e.KeyCode == Keys.Enter)
     {
         CheckCore.instance().beginCheck(txtCode.Text);
     }
 }
示例#2
0
        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);
        }
示例#3
0
 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);
 }