02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Custom Processes<br />

string for the workstep name. This is described further in “IPresentation” in Volume 3,<br />

“Petrel Customization” in Chapter 2, “User Interface Services.”<br />

public class MyAddCoreImage : Process, IPresentation<br />

{ ...<br />

public string Text { get { return “Add Core Image”; } }<br />

public Bitmap Image { get { return myCoresBitmap; } }<br />

}<br />

public event EventHandler PresentationChanged;<br />

Adding this implementation uses the image and text given.<br />

custom<br />

Presentation<br />

showing<br />

core image<br />

Fig. 6-53 Custom Presentation in Workstep Listing<br />

If you want to set a different text string but still want to use the default icon, return null<br />

for the bitmap.<br />

Step 3 - Create a Custom User Interface<br />

A custom process must have a custom UI. It is your responsibility to implement the UI;<br />

<strong>Ocean</strong> does not provide a default UI for you.<br />

6-328 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

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

Saved successfully!

Ooh no, something went wrong!