private void reloadToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { LogWindowData data = CurrentLogWindow.Tag as LogWindowData; Icon icon = GetIcon(0, data); BeginInvoke(new SetTabIconDelegate(SetTabIcon), CurrentLogWindow, icon); CurrentLogWindow.Reload(); } }