示例#1
0
        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);
        }
示例#2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     this.events.VirtualListSize = logger.GetEventCount();
 }