Skip to content

Instantly share code, notes, and snippets.

@DinisCruz
Created October 14, 2012 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DinisCruz/3887854 to your computer and use it in GitHub Desktop.
Save DinisCruz/3887854 to your computer and use it in GitHub Desktop.
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