Beispiel #1
0
 private void Reply()
 {
     if (this.IsSelected)
     {
         this.Parent.ReplySelecteds();
         return;
     }
     InputModel.InputCore.SetText(InputSetting.CreateReply(this.Status));
 }
Beispiel #2
0
        public void Quote()
        {
            if (IsDirectMessage)
            {
                // disable on direct messages
                return;
            }
            var setting = InputSetting.CreateReply(this.Status,
                                                   " RT @" + this.User.ScreenName + ": " + this.Status.GetEntityAidedText(true),
                                                   false);

            setting.CursorPosition = CursorPosition.Begin;
            InputModel.InputCore.SetText(setting);
        }
Beispiel #3
0
 private void Reply(string body)
 {
     // from key assign
     if (String.IsNullOrEmpty(body))
     {
         this.Reply();
         return;
     }
     try
     {
         var formatted = String.Format(body, this.User.ScreenName, this.User.Name);
         InputModel.InputCore.SetText(InputSetting.CreateReply(this.Status, formatted, false));
     }
     catch (Exception ex)
     {
         BackstageModel.RegisterEvent(new OperationFailedEvent("返信フォーマット エラー(フォーマット: " + body + ")", ex));
     }
 }