Esempio n. 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));
        }
Esempio n. 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));
        }