Businessobject setting IsBusy?

Businessobject setting IsBusy?

Old forum URL: forums.lhotka.net/forums/t/5785.aspx


ajj3085 posted on Tuesday, November 11, 2008

Hi,

Is there any way to set a businessbase object's IsBusy flag from within the subclass?

IsBusy seems like a perfect way to enable / disable a form automatically in Wpf.  I have a method that will hit the database, and it would be great if the method could set IsBusy to true prior to the call and false after, as it should notify the UI which can then disable itself.

Any ideas?
Thanks
Andy

sergeyb replied on Tuesday, November 11, 2008

You can already do this.  MarkBusy method is protected.  The opposite is MarkIdle I think.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: ajj3085 [mailto:cslanet@lhotka.net]
Sent: Tuesday, November 11, 2008 1:19 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Businessobject setting IsBusy?

 

Hi,

Is there any way to set a businessbase object's IsBusy flag from within the subclass?

IsBusy seems like a perfect way to enable / disable a form automatically in Wpf.  I have a method that will hit the database, and it would be great if the method could set IsBusy to true prior to the call and false after, as it should notify the UI which can then disable itself.

Any ideas?
Thanks
Andy


ajj3085 replied on Tuesday, November 11, 2008

Opps... again I was looking for a SetXYZ method... thanks!

Copyright (c) Marimer LLC