O2 Ast CodeScanner - Creating Method Streams
From
The O2 scanner is based on a concept called 'Method Streams'
This page will explain how that works
Step 1: Creating the "Method Stream Creator" GUI
to create the "Method Stream Creator" GUI we will use O2's scripting capabilities.
If you right-click on the big O2 Logo (from the "O2 XRules Database" application), you will see a menu called 'O2 Script Development & Debug". From the multipe options select the "Open quick development gui' item, and the following window should open:
and just to test that all is ok, click on 'Execute':
the "Open quick development gui' is made of two core components:
- the bottom frame which contains the script and the 'execute' button
- the top frame which contains a .Net Windows Forms 'Panel' Control that acts like a cavas/host for the script written in the bottom frame
for example the following code opens a Web Browser control (which is IE) on the top frame and shows google:
panel.clear(); var browser = panel.add_Browser(); browser.open("http://www.google.com");



