Esempio n. 1
0
        // constructor
        public UcCanReadGrid(CanMessageSendTool can)
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;
            grid      = new canDataGrid(this);

            CanTool = can;

            // menu
            contextMenu.Items.Add("Hide Backlighted");
            contextMenu.Items.Add("Hide all but Backlighted");
            contextMenu.Items.Add(new ToolStripSeparator());
            contextMenu.Items.Add("Hide Selected");
            contextMenu.Items.Add("Hide all but Selected");
            contextMenu.Items.Add(new ToolStripSeparator());
            contextMenu.Items.Add("Hide all");
            contextMenu.Items.Add("UnHide all");
            contextMenu.Items.Add(new ToolStripSeparator());
            contextMenu.Items.Add("Toggle Checkbox for All");
            contextMenu.Items.Add("Toggle Checkbox for Selected");
            contextMenu.Items.Add(new ToolStripSeparator());
            contextMenu.Items.Add("Copy Selected");
            contextMenu.Items.Add("Copy All");
            contextMenu.Items.Add(new ToolStripSeparator());
            contextMenu.Items.Add("Save Selected");
            contextMenu.Items.Add("Save All");
            contextMenu.Items.Add(new ToolStripSeparator());
            contextMenu.Items.Add("Copy Selected as Script");
            contextMenu.Items.Add("Copy All as Script");
            contextMenu.Items.Add(new ToolStripSeparator());
            //contextMenu.Items.Add("Copy Selected for Remoto");
            //contextMenu.Items.Add(new ToolStripSeparator());
            contextMenu.Items.Add("Send Selected");

            // set it
            grid.contextMenuStrip = contextMenu;
        }
Esempio n. 2
0
 // constructor
 public gridBacklightTool(canDataGrid parent, int dataOffsetIdx)
 {
     ColumnDataIdxOffset = dataOffsetIdx;
     dict = new Dictionary <long, gridBackLightMessage>();
 }