private void OnLinkRemoved(object sender, FunctionReferenceEventArgs e)
 {
   ProcessDeletedLink(e.Item);
 }
 private void OnLinkAdded(object sender, FunctionReferenceEventArgs e)
 {
   ProcessNewLink(e.Item);
 }