Exemple #1
0
        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);
        }
Exemple #2
0
        public void OnShowToolFastLinks(String dlgName)
        {
            ToolFastLinkWidget dlg = DlgCreator.Create(dlgName) as ToolFastLinkWidget;

            dlg.ShowDialog(this);
        }