public void OnShowDialog(String dlgName) { Window dlg = DlgCreator.Create(dlgName); if (dlg is ToolWidget) { (dlg as ToolWidget).ShowDialog(this); SelectedWidgets = new ObservableCollection <UserControl>(widgetService_m.GetUserControlList()); } else { dlg.ShowDialog(); } }
public void OnShowToolFastLinks(String dlgName) { ToolFastLinkWidget dlg = DlgCreator.Create(dlgName) as ToolFastLinkWidget; dlg.ShowDialog(this); }