Exemple #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));
        }
Exemple #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));
        }