02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Custom Processes<br />

7 Add your process to the Petrel Process diagram.<br />

1. Process<br />

2. persentation<br />

(optional)<br />

3. custom UI<br />

4. activation<br />

(optional)<br />

5. window modes<br />

(optional)<br />

7. add Petrel<br />

6. persistence<br />

Fig. 6-51 Steps to Write a Custom Process<br />

Step 1 - Inherit from Process Class<br />

A custom process must derive from the <strong>Ocean</strong> Process class.<br />

public abstract class Process<br />

{<br />

public Process (string name);<br />

public string Name { get; }<br />

protected abstract Control CreateUICore();<br />

protected virtual void<br />

protected virtual void<br />

OnActivateCore();<br />

OnDeactivateCore();<br />

}<br />

...<br />

6-326 <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!