Esempio n. 1
0
        public void RecNodeMenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            switch (e.ClickedItem.ToString())
            {
            case "Add Chip":
                FormChipSettings frm_NewChip = new FormChipSettings(this.ProjectRoot);
                frm_NewChip.parent          = this;
                frm_NewChip.NewChipUpdated += new FormChipSettings.NewChipUpdateHandler(frm_NewChip_NewChipUpdated);

                if (frm_NewChip.ShowDialog() == DialogResult.OK)
                {
                    UpdateTreeView();
                    DisplayStatusMessage("A new chip has been added.", MessageColor.Normal);
                }

                break;

            case "Edit Record Settings":

                FormRecSettings frm_EditRec = new FormRecSettings(this.ProjectRoot, Records.GetRecordInfo(LastRightClickedNode.Text));
                frm_EditRec.NewRecUpdated += new FormRecSettings.NewRecUpdateHandler(frm_EditRec_EditRecUpdated);

                if (frm_EditRec.ShowDialog() == DialogResult.OK)
                {
                    LastRightClickedNode.Text = "Record - " + Records.GetLastRecordName();
                }


                break;

            case "Delete Record":
                break;
            }
        }