Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
O2 Script: PoC - View FluentSharp_BCL Embeded Icons.h2
//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
You can’t perform that action at this time.