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.

PetrelLogger Class<br />

PetrelLogger Class<br />

The PetrelLogger class provides message logging that is aware of the Petrel user<br />

interface and the Petrel message log file. It should be used in preference to the<br />

CoreLogger class. The logger is capable of displaying popup dialogs with error, warning,<br />

and information messages. It can also display messages in an information dialog with a<br />

scrollable text field and in the Petrel status bar. The logger also manages the Petrel user<br />

interface progress bar and its abort button.<br />

InfoOutputWindow<br />

Fig. 5-2 Window Components Available from PetrelLogger<br />

The PetrelLogger class definition is:<br />

Status bar Progress bar Abort button<br />

public sealed class PetrelLogger : CoreLogger<br />

{<br />

public enum PetrelCategory { MessageBox = 0, OutputWindow = 1 }<br />

public static void ErrorBox(string message);<br />

public static void ErrorBox(string message, Exception ex);<br />

public static void InfoBox (string message);<br />

5-240 <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!