Пример #1
0
        public ReferencesToolbar(ReferencesView referencesView)
        {
            Verify.Argument.IsNotNull(referencesView, "referencesView");

            _referencesView = referencesView;
            Items.Add(_btnRefresh =
                new ToolStripButton(
                    Resources.StrRefresh,
                    CachedResources.Bitmaps["ImgRefresh"],
                    OnRefreshButtonClick)
                    {
                        DisplayStyle = ToolStripItemDisplayStyle.Image,
                    });

            Items.Add(new ToolStripSeparator());

            Items.Add(_btnCreateBranch =
                new ToolStripButton(
                    Resources.StrCreateBranch,
                    CachedResources.Bitmaps["ImgBranchAdd"],
                    OnCreateBranchButtonClick));

            Items.Add(_btnCreateTag =
                new ToolStripButton(
                    Resources.StrCreateTag,
                    CachedResources.Bitmaps["ImgTagAdd"],
                    OnCreateTagButtonClick));
        }
Пример #2
0
        public ReferencesToolbar(ReferencesView referencesView)
        {
            Verify.Argument.IsNotNull(referencesView, "referencesView");

            _referencesView       = referencesView;
            Items.Add(_btnRefresh =
                          new ToolStripButton(
                              Resources.StrRefresh,
                              CachedResources.Bitmaps["ImgRefresh"],
                              OnRefreshButtonClick)
            {
                DisplayStyle = ToolStripItemDisplayStyle.Image,
            });

            Items.Add(new ToolStripSeparator());

            Items.Add(_btnCreateBranch =
                          new ToolStripButton(
                              Resources.StrCreateBranch,
                              CachedResources.Bitmaps["ImgBranchAdd"],
                              OnCreateBranchButtonClick));

            Items.Add(_btnCreateTag =
                          new ToolStripButton(
                              Resources.StrCreateTag,
                              CachedResources.Bitmaps["ImgTagAdd"],
                              OnCreateTagButtonClick));
        }