Esempio n. 1
0
 public Form4(ref Transfast reciver, int lang, bool clip)
 {
     InitializeComponent();
     sender = reciver;
     checkBox1.Checked = clip;
     comboBox1.SelectedIndex = lang;
     this.KeyPreview = true;
     this.Focus();
     this.textBox1.Select();
 }
Esempio n. 2
0
 void HotKeyManager_HotKeyPressed(object sender, HotKeyEventArgs e)
 {
     if(e.Key == Keys.F1)
     {
         get_word();
         go_trans();
     }
     else if(e.Key == Keys.F2)
     {
         if (!fasttrans)
         {
             Console.WriteLine("FastTransOpen");
             Transfast tf = new Transfast(go_trans);
             Form4 f4 = new Form4(ref tf, lang, copyclip);
             fasttrans = true;
             f4.Focus();
             f4.Show();
         }
     }
     else
     {
         go_trans();
     }
 }