Example #1
0
        protected sealed override void OnDropDownOpening(EventArgs e)
        {
            base.DropDownItems.Clear();

            Command cmd = new ChangeStorageLinkPasswordCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            CommandToolStripMenuItem item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);

            cmd  = new SetStorageLinkLicenseServerCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);
            base.DropDownItems.Add(new ToolStripSeparator());

            cmd  = new AddStorageLinkSystemCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);

            cmd  = new RemoveStorageLinkSystemCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);

            cmd  = new RefreshStorageLinkConnectionCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);
        }
        protected sealed override void OnDropDownOpening(EventArgs e)
        {
            base.DropDownItems.Clear();

            Command cmd = new ChangeStorageLinkPasswordCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            CommandToolStripMenuItem item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);

            cmd = new SetStorageLinkLicenseServerCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);
            base.DropDownItems.Add(new ToolStripSeparator());

            cmd = new AddStorageLinkSystemCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);

            cmd = new RemoveStorageLinkSystemCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);

            cmd = new RefreshStorageLinkConnectionCommand(Command.MainWindowCommandInterface, Command.GetSelection());
            item = new CommandToolStripMenuItem(cmd);

            base.DropDownItems.Add(item);
        }