public void OpenPatchEditor(Node node, IHDEHost hdeHost, PatchHandle patchHandle = null) { PatchEditor.OpenCanvasOfNode(node, patchHandle); //setting the control also brings the window to front hdeHost.FiftyEditor = this; hdeHost.ShowVLEditor(); }
public bool OpenDocument(string filename) { var provider = PatchEditor?.NavigationMenu?.Provider; if (provider != null) { using (var splashScreen = new SplashForm()) { var document = AsyncPump.Run(() => Session.GetOrAddDocumentWithSplashScreen(filename, createNew: false, splashScreen: splashScreen)); PatchEditor.ShowDocument(document); return(document != null); } } return(false); }
public void CloseActiveTab(out bool windowIsGone) { windowIsGone = true; PatchEditor?.CloseActiveTab(out windowIsGone); }
public bool DeleteMe() { return(PatchEditor.QueryClose()); }