private void InitializeComponents()
        {
            BtnDelete         = new DeleteButton(this);
            ContextMenuStrip  = new ContextMenuStrip();
            TsiSearch         = new WebSearchMenuItem(this);
            TsiFileProperties = new FilePropertiesMenuItem(this);
            TsiFileLocation   = new FileLocationMenuItem(this);

            ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiSearch,
                                                                  new ToolStripSeparator(), TsiFileProperties, TsiFileLocation });

            MyToolTip.SetToolTip(BtnDelete, AppString.Menu.Delete);
        }
 private void InitializeComponents()
 {
     BtnShowMenu       = new MenuButton(this);
     ChkVisible        = new VisibleCheckBox(this);
     TsiSearch         = new WebSearchMenuItem(this);
     TsiFileLocation   = new FileLocationMenuItem(this);
     TsiFileProperties = new FilePropertiesMenuItem(this);
     TsiRegLocation    = new RegLocationMenuItem(this);
     TsiDeleteMe       = new DeleteMeMenuItem(this);
     TsiRegExport      = new RegExportMenuItem(this);
     TsiHandleGuid     = new HandleGuidMenuItem(this);
     this.ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiHandleGuid,
                                                                new ToolStripSeparator(), TsiDetails, new ToolStripSeparator(), TsiDeleteMe });
     TsiDetails.DropDownItems.AddRange(new ToolStripItem[] { TsiSearch, new ToolStripSeparator(),
                                                             TsiFileProperties, TsiFileLocation, TsiRegLocation, TsiRegExport });
 }
        private void InitializeComponents()
        {
            BtnShowMenu       = new MenuButton(this);
            BtnDetailedEdit   = new DetailedEditButton(this);
            TsiSearch         = new WebSearchMenuItem(this);
            TsiFileProperties = new FilePropertiesMenuItem(this);
            TsiFileLocation   = new FileLocationMenuItem(this);
            TsiRegLocation    = new RegLocationMenuItem(this);
            TsiHandleGuid     = new HandleGuidMenuItem(this);

            ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiHandleGuid,
                                                                  new ToolStripSeparator(), TsiDetails, new ToolStripSeparator(), TsiDelete });
            TsiDetails.DropDownItems.AddRange(new ToolStripItem[] { TsiSearch,
                                                                    new ToolStripSeparator(), TsiFileProperties, TsiFileLocation, TsiRegLocation });

            TsiDelete.Click += (sender, e) => DeleteMe();
        }
Example #4
0
        private void InitializeComponents()
        {
            BtnDelete         = new DeleteButton(this);
            ContextMenuStrip  = new ContextMenuStrip();
            TsiSearch         = new WebSearchMenuItem(this);
            TsiFileProperties = new FilePropertiesMenuItem(this);
            TsiFileLocation   = new FileLocationMenuItem(this);
            TsiRegLocation    = new RegLocationMenuItem(this);
            TsiHandleGuid     = new HandleGuidMenuItem(this);

            ContextMenuStrip.Items.AddRange(new ToolStripItem[] { TsiHandleGuid,
                                                                  new ToolStripSeparator(), TsiDetails, new ToolStripSeparator(), TsiDelete });
            TsiDetails.DropDownItems.AddRange(new ToolStripItem[] { TsiSearch,
                                                                    new ToolStripSeparator(), TsiFileProperties, TsiFileLocation, TsiRegLocation });

            MyToolTip.SetToolTip(BtnDelete, AppString.Menu.Delete);
            TsiDelete.Click += (sender, e) =>
            {
                if (MessageBoxEx.Show(AppString.Message.ConfirmDelete, MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    DeleteMe();
                }
            };
        }