Exemplo n.º 1
0
        public NewsToolbar(NewsView view)
        {
            _view = view;

            Items.Add(_btnRefresh = new ToolStripButton(Resources.StrRefresh, CachedResources.Bitmaps["ImgRefresh"],
                                                        (sender, e) =>
            {
                _view.RefreshContent();
            })
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image,
            });

            Items.Add(new ToolStripSeparator());
        }
Exemplo n.º 2
0
        public NewsToolbar(NewsView view)
        {
            _view = view;

            Items.Add(_btnRefresh = new ToolStripButton(Resources.StrRefresh, CachedResources.Bitmaps["ImgRefresh"],
                (sender, e) =>
                {
                    _view.RefreshContent();
                })
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image,
            });

            Items.Add(new ToolStripSeparator());
        }