public DefaultChannelView(ChannelLogger logger, ColumnFiller filler, ItemFactory factory) { InitializeComponent(); channelMenu.Visible = channelMenu.Items.Count > 0; this.logger = logger; this.events.VirtualListSize = logger.GetEventCount(); filler(this.events.Columns); createItem = factory; var r = logger.channel as IReplaceableChannel; handlers = new IChannelExtensions.ChannelHandlers { ChannelReplaced = channelReplacedHandler }; templatesToolStripMenuItem.Visible = false; // hide by default viewsTabControl.TabPages.Remove(editorTabPage); }
private void timer1_Tick(object sender, EventArgs e) { this.events.VirtualListSize = logger.GetEventCount(); }