My code which changes caption of navigation bar items:
OverviewOrgan_NavBarHelper cNavBarHelper = new OverviewOrgan_NavBarHelper(Organization);
foreach (NavBarItem item in GetNavigationBar.Items)
{
string cCaption = cNavBarHelper.UpdateNavBarItemCaption(item);
item.Caption = cCaption;
}
now it is on the main thread, but I have to move it to another thread. As I know that UI should not be changed from another threat, then it is made, so I thought about using BackgroundWorker. In fact, that I'm not in working with threads, can someone suggest the best solution for my task?