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 Worksteps<br />

• Implement button behavior for your custom control<br />

• Handle argument package changed event<br />

• Register the factory as a service<br />

Step 7a – Create a Custom Dialog UI<br />

Your custom user interface must inherit from System.Windows.Forms.Control and<br />

will typically inherit from System.Windows.Forms.UserControl since that is what<br />

Visual Studio creates. Design the look and behavior of the control with standard .NET<br />

components or third party components to fit your business needs.<br />

public class MyUpscalingUI : UserControl<br />

{<br />

...<br />

}<br />

Fig. 6-45 Custom UI Example<br />

The Petrel convention is that the UI’s should all have three buttons at the bottom: Apply,<br />

OK, and Cancel. You should create these three buttons in your user control.<br />

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

Workflow 6-315

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

Saved successfully!

Ooh no, something went wrong!