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(); } }
private static void SetEventPropagation() { _core.SetCursorRequest += arg => SetCursorRequest.SafeInvoke(arg); _core.FocusRequest += () => FocusRequest.SafeInvoke(); _core.CloseRequest += () => CloseRequest.SafeInvoke(); }