The UVI context menu strip.
Inheritance: System.Windows.Forms.ContextMenuStrip
コード例 #1
0
        /// <summary>
        ///     The create context menu strip.
        /// </summary>
        /// <param name="node">
        ///     The node.
        /// </param>
        /// <returns>
        ///     The <see cref="UviContextMenuStrip" />.
        /// </returns>
        private UviContextMenuStrip CreateContextMenuStrip(TreeNode node)
        {
            var menuStrip            = new UviContextMenuStrip(node);
            var downloadAllToolStrip = new ToolStripMenuItem
            {
                Text = GbdxResources.Download_all_Below_100000,
                Name = "DownloadAll"
            };

            downloadAllToolStrip.Click += this.DownloadAllToolStripOnClick;
            menuStrip.Items.Add(downloadAllToolStrip);

            return(menuStrip);
        }
コード例 #2
0
        /// <summary>
        ///     The create context menu strip.
        /// </summary>
        /// <param name="node">
        ///     The node.
        /// </param>
        /// <returns>
        ///     The <see cref="UviContextMenuStrip" />.
        /// </returns>
        private UviContextMenuStrip CreateContextMenuStrip(TreeNode node)
        {
            var menuStrip = new UviContextMenuStrip(node);
            var downloadAllToolStrip = new ToolStripMenuItem
                                           {
                                               Text = GbdxResources.Download_all_Below_100000,
                                               Name = "DownloadAll"
                                           };
            downloadAllToolStrip.Click += this.DownloadAllToolStripOnClick;
            menuStrip.Items.Add(downloadAllToolStrip);

            return menuStrip;
        }