protected static void BasePublish(DrawingExceptionBase error)
 {
     //write error to log            
     if (LogError) Cross.Log.Error(error);
     //throw error
     if (!SilentError) throw error;
 }
 protected static void BasePublish(DrawingExceptionBase error)
 {
     //write error to log
     if (LogError)
     {
         Cross.Log.Error(error);
     }
     //throw error
     if (!SilentError)
     {
         throw error;
     }
 }