Created
October 14, 2012 08:05
-
-
Save DinisCruz/3887854 to your computer and use it in GitHub Desktop.
O2 Script: PoC - View FluentSharp_BCL Embeded Icons.h2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//var topPanel = panel.add_Panel(true); | |
var topPanel = "PoC - View FluentSharp_BCL Embeded Icons".popupWindow(1000,700).add_Panel(true); | |
var toolStrip = topPanel.add_ToolStrip().layout_Flow(); | |
var iconsMappings = typeof(FormImages).ctor().propertyValues_MappedBy_Name<Bitmap>(); | |
foreach(var iconMapping in iconsMappings) | |
{ | |
var name = iconMapping.Key; | |
var image= iconMapping.Value; | |
toolStrip.add_Button(name , image,()=> name.alert()); | |
} | |
toolStrip.wait_n_Seconds(1) | |
.layout_HorizontalStackWithOverflow() | |
.wait_n_Seconds(1) | |
.layout_StackWithOverflow() | |
.wait_n_Seconds(1) | |
.layout_Table() | |
.wait_n_Seconds(1) | |
.layout_VerticalStackWithOverflow() | |
.wait_n_Seconds(1) | |
.layout_Flow(); | |
return toolStrip; | |
//using O2.Platform.BCL.O2_Views_ASCX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment