EventPublication and Subscription Thred Problem

Topics: CAB & Smart Client Software Factory
May 9, 2006 at 11:51 PM
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
May 11, 2006 at 8:47 AM
originally posted by: ksunair


I used the same model and it is working good to me. Please post both the event subscription side as well.

May 11, 2006 at 11:23 PM
originally posted by: kiavik

the problem was solved...
after the call of event i run a task that freeze UI.
if this task is executed in a separated thred the effect of event in status bar appaer

thanks of all...