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 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); }