wwBusiness.StatusMessage

Event hook that can be used to pass status messages from the business object to the presentation layer.

For example a common use might be to hook this event to displaying messages on a status bar of a Windows Form. Internally your code can call OnStatusMessage() method to fire messages. If an event is hooked up the event is forwarded.

public event delStatusMessage StatusMessage

Remarks

Use OnStatusMessage to fire the event from within your business object.

Example

// *** Hook up Event and point at StatusMessage method Invoice = WebStoreFactory.GetbusInvoice(); // *** Hook up Invoice message events so that they go to the status bar Invoice.StatusMessage += new Westwind.BusinessObjects.delStatusMessage(this.StatusMessage); ... // *** StatusMessage Handler in the form public void StatusMessage(string Message) { this.StatusBar.Panels[0].Text = Message; }

See also:

Class wwBusiness


 Last Updated: 3/7/2007 | Send topic feedback