Example #1
0
 bool IMenuStripManagerHandler.ExecuteMenuItem(MenuStripManager menuStrip, ToolStripMenuItem menuItem)
 {
     if (menuItem == menuStrip.buildObjectToolStripMenuItem)
     {
         BuildThis(true /*force*/);
         return(true);
     }
     else if (menuItem == menuStrip.envelopeSegmentCalculatorToolStripMenuItem)
     {
         SegmentCalculatorDialog segmentCalculator = new SegmentCalculatorDialog(this);
         segmentCalculators.Add(segmentCalculator);
         segmentCalculator.Show();
         return(true);
     }
     else if (menuItem == menuStrip.deleteObjectToolStripMenuItem)
     {
         Close();
         mainWindow.DeleteObject(instrumentObject, mainWindow.Document.InstrumentList);
         return(true);
     }
     return(false);
 }
Example #2
0
        //

        public void SegmentCalculatorClosed(SegmentCalculatorDialog segmentCalculator)
        {
            segmentCalculators.Remove(segmentCalculator);
        }