public RemotesToolbar(RemotesView remotesView) { Verify.Argument.IsNotNull(remotesView, "remotesView"); _remotesView = remotesView; Items.Add(new ToolStripButton(Resources.StrRefresh, CachedResources.Bitmaps["ImgRefresh"], (sender, e) => { _remotesView.RefreshContent(); }) { DisplayStyle = ToolStripItemDisplayStyle.Image, }); Items.Add(new ToolStripSeparator()); Items.Add(_btnAddRemote = new ToolStripButton(Resources.StrAddRemote, CachedResources.Bitmaps["ImgRemoteAdd"], (sender, e) => { using (var dlg = new AddRemoteDialog(_remotesView.Repository)) { dlg.Run(_remotesView); } })); }
public RemotesToolbar(RemotesView remotesView) { Verify.Argument.IsNotNull(remotesView, "remotesView"); _remotesView = remotesView; Items.Add(new ToolStripButton(Resources.StrRefresh, CachedResources.Bitmaps["ImgRefresh"], (sender, e) => { _remotesView.RefreshContent(); }) { DisplayStyle = ToolStripItemDisplayStyle.Image, }); Items.Add(new ToolStripSeparator()); Items.Add(_btnAddRemote = new ToolStripButton(Resources.StrAddRemote, CachedResources.Bitmaps["ImgRemoteAdd"], (sender, e) => { using(var dlg = new AddRemoteDialog(_remotesView.Repository)) { dlg.Run(_remotesView); } })); }