Example #1
0
        /// <summary>Initializes a new instance of the <see cref="ContributorsToolBar"/> class.</summary>
        /// <param name="view">Host contributors view.</param>
        public ContributorsToolBar(ContributorsView view)
        {
            _view = view;

            Items.AddRange(
                new ToolStripItem[]
            {
                // left-aligned
                _btnRefresh = new ToolStripButton(Resources.StrRefresh, CachedResources.Bitmaps["ImgRefresh"], OnRefreshButtonClick)
                {
                    DisplayStyle = ToolStripItemDisplayStyle.Image,
                },
            });
        }
Example #2
0
        /// <summary>Initializes a new instance of the <see cref="ContributorsToolBar"/> class.</summary>
        /// <param name="view">Host contributors view.</param>
        public ContributorsToolBar(ContributorsView view)
        {
            _view = view;

            Items.AddRange(
                new ToolStripItem[]
                {
                    // left-aligned
                    _btnRefresh = new ToolStripButton(Resources.StrRefresh, CachedResources.Bitmaps["ImgRefresh"], OnRefreshButtonClick)
                        {
                            DisplayStyle = ToolStripItemDisplayStyle.Image,
                        },
                });
        }