void ShowSetDefinitionUi()
        {
            var parent = Rhino.UI.Runtime.PlatformServiceProvider.Service.GetEtoWindow(Grasshopper.Instances.DocumentEditor.Handle);
            var form   = new SetDefinitionForm(RemoteDefinitionLocation);

            if (form.ShowModal(parent))
            {
                RemoteDefinitionLocation = form.Path;
            }
        }
Esempio n. 2
0
        void ShowSetDefinitionUi()
        {
            var form = new SetDefinitionForm(RemoteDefinitionLocation);

            if (form.ShowModal(Grasshopper.Instances.EtoDocumentEditor))
            {
                var comp = Grasshopper.Instances.ComponentServer.FindObjectByName(form.Path, true, true);
                if (comp != null)
                {
                    RemoteDefinitionLocation = comp.Guid.ToString();
                }
                else
                {
                    RemoteDefinitionLocation = form.Path;
                }
            }
        }
Esempio n. 3
0
        void ShowSetDefinitionUi()
        {
            var parent = Rhino.UI.Runtime.PlatformServiceProvider.Service.GetEtoWindow(Grasshopper.Instances.DocumentEditor.Handle);
            var form   = new SetDefinitionForm(RemoteDefinitionLocation);

            if (form.ShowModal(parent))
            {
                var comp = Grasshopper.Instances.ComponentServer.FindObjectByName(form.Path, true, true);
                if (comp != null)
                {
                    RemoteDefinitionLocation = comp.Guid.ToString();
                }
                else
                {
                    RemoteDefinitionLocation = form.Path;
                }
            }
        }