Exemplo n.º 1
0
 // 显示翻译窗口
 private void ShowTranForm()
 {
     try
     {
         var ft = new FrmTranslate(tranInterface, windowName, windowClass);
         ft.Show();
     }
     catch
     {
         ;
     }
 }
Exemplo n.º 2
0
 // 显示翻译窗口
 private void ShowTranForm()
 {
     try
     {
         FrmTranslate ts = new FrmTranslate(sourceOfTran, windowName, windowClass);
         ts.Local = new Point(this.Location.X + this.Width / 2, this.Location.Y + this.Height / 2);
         ts.Show();
     }
     catch
     {
         ;
     }
 }