//=====================================================
 internal static void dropRecording(bool closewindow)
 {
     //-------------------------------------------
     if (massivenumbers == null)
     {
         return;
     }
     //-------------------------------------------
     if (closewindow && massivenumbers != null)
     {
         massivenumbers.removeWindow();
     }
     //-------------------------------------------
     massivenumbers = null;
     appstatus      = AppStatus.NONE;
     //-------------------------------------------
     if (!closewindow && formMain != null)
     {
         formMain.stopMassiveSetControls();
     }
     //-------------------------------------------
 }
 //*****************************************************
 internal static void startRecording()
 {
     massivenumbers = new MassiveNumbers();
     massivenumbers.showWindow();
     appstatus = AppStatus.RECORDING;
 }