Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public void CloseActiveTab(out bool windowIsGone)
 {
     windowIsGone = true;
     PatchEditor?.CloseActiveTab(out windowIsGone);
 }
Ejemplo n.º 4
0
 public bool DeleteMe()
 {
     return(PatchEditor.QueryClose());
 }