Beispiel #1
0
        private void OnServerCutText()
        {
            // In order to play nicely with WinForms controls, we do a check here to
            // see if it is necessary to synchronize this event with the UI thread.
//            if (!(ServerCutText?.Target is Control)) return;
//            var target = (Control) ServerCutText.Target;
//
//            if (target != null)
//                target.Invoke(ServerCutText, this, EventArgs.Empty);
//            else
            ServerCutText?.Invoke(this, EventArgs.Empty);
        }
Beispiel #2
0
 private void OnServerCutText()
 {
     ServerCutText?.Invoke(this, EventArgs.Empty);
 }