private void UnreadStripMenuItem_Click(object sender, EventArgs e)
{
using (ControlTransaction.Update(this._curList))
{
foreach (int idx in _curList.SelectedIndices)
{
var post = this._statuses.Tabs[this._curTab.Text][idx];
this._statuses.SetReadAllTab(post.StatusId, read: false);
ChangeCacheStyleRead(false, idx);
}
ColorizeList();
}
foreach (TabPage tb in ListTab.TabPages)
{
if (_statuses.Tabs[tb.Text].UnreadCount > 0)
{
if (this._cfgCommon.TabIconDisp)
{
if (tb.ImageIndex == -1) tb.ImageIndex = 0; //タブアイコン
}
}
}
if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
}