private void SCDimensionsChanged()
        {
            ScreenRecorder.CaptureRect = new System.Drawing.Rectangle(SCX1, SCY1, SCX2 - SCX1, SCY2 - SCY1);

            Text_SC_WidthHeight = "Width: " + ScreenRecorder.CaptureRect.Width.ToString() + " " + "Height: " + ScreenRecorder.CaptureRect.Height.ToString();

            if (SCDisplayOutline.IsChecked == true)
            {
                ScreenRecorder.HideOutline();
            }
        }
 void AbortOutlineThread()
 {
     ScreenRecorder.doOutline = false;
     if (outlineThread != null)
     {
         outlineThread.Abort();
         while (outlineThread.IsAlive)
         {
             ;
         }
     }
     ScreenRecorder.HideOutline();
 }