Ejemplo n.º 1
0
 /// <summary>Main widget destroyed handler</summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void MainWidgetDestroyed(object sender, EventArgs e)
 {
     try
     {
         btnJumpToSimLog.Clicked -= OnJumpToSimulationLog;
         topBox.Cleanup();
         SummaryCheckBox.MainWidget.Cleanup();
         WarningCheckBox.MainWidget.Cleanup();
         ErrorCheckBox.MainWidget.Cleanup();
         middleBox.Cleanup();
         SimulationDropDown.MainWidget.Cleanup();
         mainControl.Cleanup();
         ((ViewBase)SummaryDisplay).MainWidget.Cleanup();
         mainWidget.Destroyed -= MainWidgetDestroyed;
         owner = null;
     }
     catch (Exception err)
     {
         ShowError(err);
     }
 }