Beispiel #1
0
 private void SetText(IEnumerable <TwitterAccount> infos,
                      string body,
                      TwitterStatus inReplyTo,
                      CursorPosition cursor,
                      bool focusToInputArea)
 {
     CurrentInputData = new InputData(body)
     {
         Accounts  = infos,
         InReplyTo = inReplyTo,
     };
     SetCursorRequest.SafeInvoke(cursor ?? CursorPosition.End);
     if (focusToInputArea)
     {
         FocusRequest.SafeInvoke();
     }
 }
Beispiel #2
0
 private static void SetEventPropagation()
 {
     _core.SetCursorRequest += arg => SetCursorRequest.SafeInvoke(arg);
     _core.FocusRequest     += () => FocusRequest.SafeInvoke();
     _core.CloseRequest     += () => CloseRequest.SafeInvoke();
 }