private static void clickDemo(jQueryEvent arg) { BaseDemo d = arg.Data as BaseDemo; if (d == ActiveDemo) { return; } if (ActiveDemo != null) { ActiveDemo.Hide(); DemoContainer.RemoveChild(ActiveDemo.Container); ActiveDemo = null; } ActiveDemo = d; DemoContainer.AppendChild(ActiveDemo.Container); Action doShow = delegate { ActiveDemo.Show(); }; Window.SetTimeout(doShow, 500); }
private static void AddDemo(BaseDemo v) { if (!Demos.ContainsKey(v.DemoCategory)) Demos.Add(v.DemoCategory, new List<BaseDemo>()); Demos[v.DemoCategory].Add(v); }
private static void AddDemo(BaseDemo v) { if (!Demos.ContainsKey(v.DemoCategory)) { Demos.Add(v.DemoCategory, new List <BaseDemo>()); } Demos[v.DemoCategory].Add(v); }
public static void Launch() { ActiveDemo = null; Demos = new Dictionary<string, List<BaseDemo>>(); AddDemo(new webgl_interactive_draggablecubes("draggablecubes", "Interactive")); AddDemo(new misc_controls_trackball("trackball", "Interactive")); AddDemo(new misc_controls_transform("transform", "Interactive")); AddDemo(new demo_shadow("Shadow", "Geometry")); AddDemo(new geometry_demo("GeometryDemo", "Geometry")); AddDemo(new canvas_ascii_effect("ascii_effect", "Effects")); AddDemo(new demo_cloths("demo_cloths", "Effects")); AddDemo(new demo_carpet("demo_carpet", "Effects")); MakeList(); }
public static void Launch() { ActiveDemo = null; Demos = new Dictionary <string, List <BaseDemo> >(); AddDemo(new webgl_interactive_draggablecubes("draggablecubes", "Interactive")); AddDemo(new misc_controls_trackball("trackball", "Interactive")); AddDemo(new misc_controls_transform("transform", "Interactive")); AddDemo(new demo_shadow("Shadow", "Geometry")); AddDemo(new geometry_demo("GeometryDemo", "Geometry")); AddDemo(new canvas_ascii_effect("ascii_effect", "Effects")); AddDemo(new demo_cloths("demo_cloths", "Effects")); AddDemo(new demo_carpet("demo_carpet", "Effects")); MakeList(); }
private static void clickDemo(jQueryEvent arg) { BaseDemo d = arg.Data as BaseDemo; if (d == ActiveDemo) return; if (ActiveDemo != null) { ActiveDemo.Hide(); DemoContainer.RemoveChild(ActiveDemo.Container); ActiveDemo = null; } ActiveDemo = d; DemoContainer.AppendChild(ActiveDemo.Container); Action doShow = delegate { ActiveDemo.Show(); }; Window.SetTimeout(doShow, 500); }