Beispiel #1
0
        public void ChipNodeMenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            switch (e.ClickedItem.ToString())
            {
            case "Edit Chip Settings":

                FormChipSettings frm_EditChip = new FormChipSettings(this.ProjectRoot, Chips.GetChipInfo(LastRightClickedNode.Text));
                //frm_EditChip.EditChipUpdated += new FormChipSettings.NewChipUpdateHandler(frm_EditChip_EditChipUpdated);
                frm_EditChip.NewChipUpdated += new FormChipSettings.NewChipUpdateHandler(frm_EditChip_EditChipUpdated);

                if (frm_EditChip.ShowDialog() == DialogResult.OK)
                {
                    LastRightClickedNode.Text = "Chip - " + Chips.GetLastChipName();
                }


                break;

            case "Delete Chip":
                break;
            }
        }