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