Esempio n. 1
0
 public void TranslateClicked(object sender, EventArgs EA)
 {
     TranslateDialogBox SelectLanguage = new TranslateDialogBox();
     SelectLanguage.ShowDialog();
     if ((SelectLanguage.Result == DialogResult.OK))
     {
         TranslateText ob1 = new TranslateText();
         UpdateText(ob1.Translate(this.txtbox1.SelectedText, SelectLanguage.Language));
     }
 }
Esempio n. 2
0
        private void PerformAction(string ptext)
        {
            switch (ptext)
            {
                case "&Cut":
                    this.txtbox1.Cut();
                    break;
                case "&Copy":
                    this.txtbox1.Copy();
                    break;
                case "&Paste":
                    this.txtbox1.Paste();
                    break;
                case "Un&do":
                    this.txtbox1.Undo();
                    break;
                case "&Redo":
                    this.txtbox1.Redo();
                    break;
                case "&Select":
                    this.txtbox1.Select();
                    break;
                case "Select &All":
                    this.txtbox1.SelectAll();
#if PLAY
                    TranslateDialogBox SelectLanguage = new TranslateDialogBox();
                    
#endif
                    break;

            }
        }