tw.AllAtReply = SettingManager.Common.AllAtReply;
AllrepliesToolStripMenuItem.Checked = tw.AllAtReply;
ShortUrl.Instance.DisableExpanding = !SettingManager.Common.TinyUrlResolve;
+ ShortUrl.Instance.BitlyAccessToken = SettingManager.Common.BitlyAccessToken;
ShortUrl.Instance.BitlyId = SettingManager.Common.BilyUser;
ShortUrl.Instance.BitlyKey = SettingManager.Common.BitlyPwd;
tw.RestrictFavCheck = SettingManager.Common.RestrictFavCheck;
tw.ReadOwnPost = SettingManager.Common.ReadOwnPost;
ShortUrl.Instance.DisableExpanding = !SettingManager.Common.TinyUrlResolve;
+ ShortUrl.Instance.BitlyAccessToken = SettingManager.Common.BitlyAccessToken;
ShortUrl.Instance.BitlyId = SettingManager.Common.BilyUser;
ShortUrl.Instance.BitlyKey = SettingManager.Common.BitlyPwd;
TwitterApiConnection.RestApiHost = SettingManager.Common.TwitterApiHost;
{
try
{
- var task = this.twitterApi.FriendshipsCreate(id);
+ var task = this.twitterApi.FriendshipsCreate(id).IgnoreResponse();
await dialog.WaitForAsync(this, task);
}
catch (WebApiException ex)
{
try
{
- var task = this.twitterApi.FriendshipsDestroy(id);
+ var task = this.twitterApi.FriendshipsDestroy(id).IgnoreResponse();
await dialog.WaitForAsync(this, task);
}
catch (WebApiException ex)
return;
}
- StatusText.Text = " " + MyCommon.GetStatusUrl(_curPost);
+ var selection = (this.StatusText.SelectionStart, this.StatusText.SelectionLength);
+
+ StatusText.Text += " " + MyCommon.GetStatusUrl(_curPost);
this.inReplyTo = null;
- StatusText.SelectionStart = 0;
+ (this.StatusText.SelectionStart, this.StatusText.SelectionLength) = selection;
StatusText.Focus();
}
}
string rtdata = _curPost.Text;
rtdata = CreateRetweetUnofficial(rtdata, this.StatusText.Multiline);
- StatusText.Text = " RT @" + _curPost.ScreenName + ": " + rtdata;
+ var selection = (this.StatusText.SelectionStart, this.StatusText.SelectionLength);
+
+ StatusText.Text += " RT @" + _curPost.ScreenName + ": " + rtdata;
// 投稿時に in_reply_to_status_id を付加する
var inReplyToStatusId = this._curPost.RetweetedId ?? this._curPost.StatusId;
var inReplyToScreenName = this._curPost.ScreenName;
this.inReplyTo = Tuple.Create(inReplyToStatusId, inReplyToScreenName);
- StatusText.SelectionStart = 0;
+ (this.StatusText.SelectionStart, this.StatusText.SelectionLength) = selection;
StatusText.Focus();
}
}