Book a Demo

Author Topic: Problem with element.Refresh()  (Read 2857 times)

Daryn

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Problem with element.Refresh()
« on: January 15, 2008, 01:59:30 am »
I have created an EA Add-In using C#. I update an element but the update is not reflected in the EA user interface until I 'manually' refresh EA (ctr+shift+f11).

I have tried element.refresh() and element.update(), but no success...

Any suggestions?

Daryn

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Problem with element.Refresh()
« Reply #1 on: January 15, 2008, 03:10:08 am »
Solution!

This has worked for me:

// Update the UI, this leaves the package selected
Repository.RefreshModelView(element.PackageID);  

// Re-select the updated element
Repository.ShowInProjectView(element);

                          8)          
« Last Edit: January 15, 2008, 03:12:19 am by Daryn »