public static void Show(DockingManager manager, PSMDiagram diagram, string schema, TranslationLog log) { XMLSchemaWindow w = new XMLSchemaWindow(); w.Diagram = diagram; w.XMLSchemaText = schema; w.LogMessages = log; w.MainWindow = manager.GetMainWindow(); w.IsFloatingAllowed = true; w.IsCloseable = true; w.Title = string.Format("{0}.xsd", diagram.Caption); w.Show(manager, true); //DocumentFloatingWindow fw = new DocumentFloatingWindow(manager, w, manager.MainDocumentPane) { Topmost = true }; //w.MainWindow.DiagramTabManager.CreatedFloatingWindows.Add(fw); //w.DocumentFloatingWindow = fw; //fw.Show(); }
public static void Show(DockingManager manager, PSMDiagram diagram, Dictionary <string, string> schemas, TranslationLog log) { XMLSchemaWindow w = new XMLSchemaWindow(); w.Diagram = diagram; w.XMLSchemaTexts = schemas; w.LogMessages = log; w.MainWindow = (MainWindow)manager.ParentWindow; w.IsFloatingAllowed = true; w.IsCloseable = true; w.Title = "XML Schema"; //string.Format("{0}.xsd", diagram.Caption); DocumentFloatingWindow fw = new DocumentFloatingWindow(manager, w, manager.MainDocumentPane) { Topmost = true }; w.MainWindow.DiagramTabManager.CreatedFloatingWindows.Add(fw); w.DocumentFloatingWindow = fw; fw.Show(); }