private void FileExtensionRemoved(object sender, FileExtensionEventArgs e)
 {
     if (e.Extension == extension)
     {
         extension = null;
         _exceptionCaughtLayer.RemoveAllAdornments();
     }
 }
 private void FileExtensionRemoved(object sender, FileExtensionEventArgs e)
 {
     if (e.Extension == extension)
     {
         extension = null;
         _exceptionCaughtLayer.RemoveAllAdornments();
         if (exceptionCaughtButtonWindow != null)
         {
             exceptionCaughtButtonWindow.Close();
             exceptionCaughtButtonWindow = null;
         }
     }
 }
Example #3
0
 // Redraw the adornment if one exists
 private void SetBrushAndRedrawAdornment()
 {
     if (_trackingPoint != null)
     {
         _adornmentLayer.RemoveAllAdornments();
         RenderAdornment();
     }
 }