private void ReadedStripMenuItem_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: true);
ChangeCacheStyleRead(true, idx);
}
ColorizeList();
}
foreach (TabPage tb in ListTab.TabPages)
{
if (_statuses.Tabs[tb.Text].UnreadCount == 0)
{
if (this._cfgCommon.TabIconDisp)
{
if (tb.ImageIndex == 0) tb.ImageIndex = -1; //タブアイコン
}
}
}
if (!this._cfgCommon.TabIconDisp) ListTab.Refresh();
}