}// ----------------------------------------- // -- // Call this on the destructor of forms you attach a box public static void detachTextBox() { if(textBoxTrace!=null) { Trace.Listeners.Remove(textBoxTrace); textBoxTrace.Dispose(); textBoxTrace = null; } }// -----------------------------------------
}// ----------------------------------------- // -- // Call this on the destructor of forms you attach a box public static void detachTextBox() { if(textBoxTrace!=null) { LOG.log("Detaching"); Debug.Listeners.Remove(textBoxTrace); textBoxTrace.Dispose(); textBoxTrace = null; } }// -----------------------------------------