예제 #1
0
파일: StashToolBar.cs 프로젝트: Kuzq/gitter
        /// <summary>Initializes a new instance of the <see cref="StashToolbar"/> class.</summary>
        /// <param name="stashView">Stash view.</param>
        public StashToolbar(StashView stashView)
        {
            Verify.Argument.IsNotNull(stashView, "stashView");

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

            Items.Add(new ToolStripSeparator());

            Items.Add(_saveButton =
                new ToolStripButton(
                    Resources.StrSave,
                    CachedResources.Bitmaps["ImgStashSave"],
                    OnStashSaveButtonClick)
                    {
                        ToolTipText = Resources.TipStashSave,
                    });
        }
예제 #2
0
        /// <summary>Initializes a new instance of the <see cref="StashToolbar"/> class.</summary>
        /// <param name="stashView">Stash view.</param>
        public StashToolbar(StashView stashView)
        {
            Verify.Argument.IsNotNull(stashView, nameof(stashView));

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

            Items.Add(new ToolStripSeparator());

            Items.Add(_saveButton =
                          new ToolStripButton(
                              Resources.StrSave,
                              CachedResources.Bitmaps["ImgStashSave"],
                              OnStashSaveButtonClick)
            {
                ToolTipText = Resources.TipStashSave,
            });
        }