public static void AbortRecording() { if (IsRecording && recordForm != null && !recordForm.IsDisposed) { recordForm.AbortRecording(); } }