public override bool ExecuteAction()
        {
            if (Loader.Core.SelNodeCount > 1)
            {
                Loader.Core.PushPrompt("Actions Builder only supports one Node");
            }
            else
            {
                IINode node = null;
                SClass_ID type;

                if (Loader.Core.SelNodeCount == 0)
                    type = SClass_ID.Scene;
                else
                {
                    node = Loader.Core.GetSelNode(0);
                    type = node.ObjectRef.Eval(0).Obj.SuperClassID;
                }

                if (type == SClass_ID.Geomobject || type == SClass_ID.Light || type == SClass_ID.Camera || type == SClass_ID.Scene)
                {
                    using (var ab = new ActionsBuilderForm())
                    {
                        // Just show dialog
                        ab.ShowDialog();
                    }
                }
            }

            return true;
        }
        public override bool ExecuteAction()
        {
            if (Loader.Core.SelNodeCount > 1)
            {
                Loader.Core.PushPrompt("Actions Builder only supports one Node");
            }
            else
            {
                IINode node = null;
                SClass_ID type;

                if (Loader.Core.SelNodeCount == 0)
                    type = SClass_ID.Scene;
                else
                {
                    node = Loader.Core.GetSelNode(0);
                    type = node.ObjectRef.Eval(0).Obj.SuperClassID;
                }

                if (type == SClass_ID.Geomobject || type == SClass_ID.Scene)
                {
                    if (_form == null)
                        _form = new ActionsBuilderForm(this);

                    _form.WindowState = FormWindowState.Maximized;

                    _form.ShowDialog();
                    //Application.Run(_form);

                }
            }

            return true;
        }
        public override bool ExecuteAction()
        {
            if (Loader.Core.SelNodeCount > 1)
            {
                Loader.Core.PushPrompt("Actions Builder only supports one Node");
            }
            else
            {
                IINode    node = null;
                SClass_ID type;

                if (Loader.Core.SelNodeCount == 0)
                {
                    type = SClass_ID.Scene;
                }
                else
                {
                    node = Loader.Core.GetSelNode(0);
                    type = node.ObjectRef.Eval(0).Obj.SuperClassID;
                }

                if (type == SClass_ID.Geomobject || type == SClass_ID.Light || type == SClass_ID.Camera || type == SClass_ID.Scene)
                {
                    using (var ab = new ActionsBuilderForm())
                    {
                        // Just show dialog
                        ab.ShowDialog();
                    }
                }
            }

            return(true);
        }
        public void Close()
        {
            if (_form == null)
                return;

            _form.Dispose();
            _form = null;
        }
        public void Close()
        {
            if (_form == null)
            {
                return;
            }

            _form.Dispose();
            _form = null;
        }
        public override bool ExecuteAction()
        {
            if (Loader.Core.SelNodeCount > 1)
            {
                Loader.Core.PushPrompt("Actions Builder only supports one Node");
            }
            else
            {
                IINode    node = null;
                SClass_ID type;

                if (Loader.Core.SelNodeCount == 0)
                {
                    type = SClass_ID.Scene;
                }
                else
                {
                    node = Loader.Core.GetSelNode(0);
                    type = node.ObjectRef.Eval(0).Obj.SuperClassID;
                }

                if (type == SClass_ID.Geomobject || type == SClass_ID.Scene)
                {
                    if (_form == null)
                    {
                        _form = new ActionsBuilderForm(this);
                    }

                    _form.WindowState = FormWindowState.Maximized;

                    _form.ShowDialog();
                    //Application.Run(_form);
                }
            }

            return(true);
        }