Пример #1
0
 public void EnsureLightCurveFormClosed()
 {
     try
     {
         if (m_LightCurveForm != null &&
             m_LightCurveForm.Visible)
         {
             // TODO: Ask if the user wants to save it /* Yes/No options only. No 'Cancel' option*/
             // TODO: This should be moved to a different place and should be tested from all: (1) Closing Tangra's main form, (2) Closing LightCurve form, (3) Switching to a different operation
             m_LightCurveForm.CloseFormDontSendMessage();
         }
     }
     finally
     {
         m_LightCurveForm = null;
     }
 }