private void synchronizeAnotherLogMenuItem_Click(object sender, EventArgs e) { LogViewerInstance instance = ((LogViewerInstanceToolStripItem)sender).LogInstance; if (this.synchronizeAnotherLogs.IndexOf(instance.ID) > -1) { this.synchronizeAnotherLogs.Remove(instance.ID); } else { this.synchronizeAnotherLogs.Add(instance.ID); this.GoToSameTimeInAnotherLog(instance.ID); } }
public LogViewerInstanceToolStripItem(LogViewerInstance logViewerInstance) { this.LogInstance = logViewerInstance; this.Text = LogInstance.LogFileName; }