private void CopyIdUri()
{
if (this._curTab == null)
return;
var tab = this._statuses.GetTabByName(this._curTab.Text);
if (tab == null || tab is DirectMessagesTabModel)
return;
var copyUrls = new List<string>();
foreach (int idx in _curList.SelectedIndices)
{
var post = tab[idx];
copyUrls.Add(MyCommon.GetStatusUrl(post));
}
if (copyUrls.Count == 0)
return;
try
{
Clipboard.SetDataObject(string.Join(Environment.NewLine, copyUrls), false, 5, 100);
}
catch (ExternalException ex)
{
MessageBox.Show(ex.Message);
}
}