Esempio n. 1
0
 /// <summary>
 /// Selects all the text
 /// </summary>
 public virtual void SelectAll()
 {
     if (TalkWindowForm != null && TalkWindowTextBox is TextBoxBase)
     {
         var tb = (TextBoxBase)TalkWindowTextBox;
         TalkWindowForm.Invoke(new MethodInvoker(tb.SelectAll));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Pastes text from clipboard into the talk window
 /// </summary>
 public virtual void Paste()
 {
     if (TalkWindowForm != null && TalkWindowTextBox is TextBoxBase)
     {
         var tb = (TextBoxBase)TalkWindowTextBox;
         TalkWindowForm.Invoke(new MethodInvoker(tb.Paste));
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Decreases the font size in the talk window by a step
 /// </summary>
 public virtual void ZoomOut()
 {
     if (TalkWindowForm != null && TalkWindowTextBox is TextBoxBase)
     {
         TalkWindowForm.Invoke(new MethodInvoker(delegate
         {
             if (TalkWindowTextBox.Font.Size - FontSizeDelta >= MinFontSize)
             {
                 if (setFont(TalkWindowTextBox.Font.Size - FontSizeDelta))
                 {
                     notifyFontChanged();
                 }
             }
         }));
     }
 }