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.

The <strong>Ocean</strong> Module<br />

The Description and DisplayName properties are simple strings that provide<br />

respectively a phrase describing the purpose of the module and the name for the module.<br />

The ImageResourceName property provides a path to an imbedded resource that is an<br />

icon that is to be displayed with the module name and other information. The full<br />

namespace qualified name of the resource should be provided. The Uri property provides<br />

the identity of the website for information on the module.<br />

For our new class to take effect and provide the module appearance information, we apply<br />

the attribute ModuleAppearance, with the appearance class type, to our module class.<br />

namespace Slb.<strong>Ocean</strong>.Demo.MyModule<br />

{<br />

[ModuleAppearance( typeof( MyModuleAppearance ) )]<br />

public class MyModule : IModule<br />

{<br />

...<br />

}<br />

}<br />

When the Petrel user displays the System Components from the Petrel Help About... menu<br />

item, the module appearance information will appear in the list.<br />

IModuleAppearance<br />

information<br />

Fig. 3-6 Module Appearance Shown in Petrel Components List<br />

<strong>Schlumberger</strong> Private<br />

<strong>Ocean</strong> Core 3-41

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

Saved successfully!

Ooh no, something went wrong!