12.07.2015 Views

Discover Enterprise Library - Willy .Net

Discover Enterprise Library - Willy .Net

Discover Enterprise Library - Willy .Net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

nodeType = typeof(StatusBarNotificationNode);entry = NodeCreationEntry.CreateNodeCreationEntryWithMultiples(newAddChildNodeCommand(serviceProvider, nodeType), nodeType,typeof(StatusBarNotificationData),SR.DefaultSatusBarNotificationNodeName);nodeCreationService.AddNodeCreationEntry(entry);}Note: This registers the new node (and associated data class) with the configuration console.Task 3 – Build and Configure• Build the application, and check that there are no errors.• Run the <strong>Enterprise</strong> <strong>Library</strong> Configuration tool. From the Windows Start menu select All Programs |Microsoft patterns and practices | <strong>Enterprise</strong> <strong>Library</strong> | <strong>Enterprise</strong> <strong>Library</strong> Configuration.• Select File | Open Application and browse to the App.configfile located here [C:\Microsoft Hands-On-Lab\HOL-pnp08\Source\cs\exercises\ex03\begin\EditorApplication].• There is already a notification section configured. Add a new Status Bar Notification.• Set the DisplayTimeout to 3000.• Select the Notification section, and set the default provider to Status Bar Notification.Figure 3.1Create a new Status Bar Notification• Select the File | Save All menu command to save the configuration.Page 135

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!