Event Publish and Subscribtion thread problem

Topics: CAB & Smart Client Software Factory
May 4, 2006 at 6:46 AM
originally posted by: kiavik

like bankteller sample, in a shell form there is an eventsubription to change text on a statusbar.

if i run event publicated from a Workitem class to change text during an async operation i don't notice changes of text statusbar, but i'm sure that the event is fired


EventPublication("topic://RSShell/statusupdate", PublicationScope.Global)
public event EventHandler<CABServices.StatusBarEventArgs<string, bool>> UpdateStatusTextEvent;

EventSubscription("topic://RSShell/statusupdate", Thread = ThreadOption.UserInterface)
public void OnStatusUpdate(object sender, CABServices.StatusBarEventArgs<string,bool> e)
this.mmUltraWinStatusBar1.Panels0.Text = e.Text;

if i use a difference threadOption i have the same result