Exemple #1
0
        private void contextMenuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            var row  = controlDataGridView.CurrentCell.RowIndex;
            var item = dataProcessor.controllerData[row];

            if (e.ClickedItem.Name == "deleteItemItem")
            {
                dataProcessor.DeleteControlItem(item);
            }
            else if (e.ClickedItem.Name == "logFilter")
            {
                filterTextBox.Text = string.Format("VPX {0}", item.triggerString);
            }
            else if (e.ClickedItem.Name == "deleteAllDisabled")
            {
                dataProcessor.DeleteAllDisabled();
            }
            else if (e.ClickedItem.Name == "duplicate")
            {
                dataProcessor.DuplicateItem(item);
            }
        }