public static Window Create(String dlgName) { Window dlg = null; switch (dlgName) { case "AboutSystem": dlg = new AboutSystemWidget(); break; case "Product": dlg = new ProductWidget(); break; case "Tool": dlg = new ToolWidget(); break; case "ToolFastLink": dlg = new ToolFastLinkWidget(); break; case "Help": throw new NotImplementedException(); } return(dlg); }
public void OnShowToolFastLinks(String dlgName) { ToolFastLinkWidget dlg = DlgCreator.Create(dlgName) as ToolFastLinkWidget; dlg.ShowDialog(this); }