private void displayProperties_SetValue(object sender, Proteus.Editor.Utility.PropertySpecEventArgs e)
        {
            // Find the corresponding property on the actor and transfer.
            Framework.Parts.IProperty[] properties = currentActor.Properties;

            foreach (Framework.Parts.IProperty p in properties)
            {
                if (p.Name == e.Property.Name)
                {
                    // Transfer value.
                    p.CurrentValue = e.Value;

                    // Walk up the stack.
                    Framework.Parts.Basic.ConfigFileActor configActor = Utility.Actor.FindConfigFile(currentActor);
                    if (configActor != null)
                    {
                        configActor.WriteFile();
                        configActor.ReadFile();
                        Manipulation.Manager.Instance.AfterActorModified( configActor );
                    }

                    break;
                }
            }
        }
        public bool OnLoad(Proteus.Kernel.Information.License license, Proteus.Kernel.Information.Version version, Proteus.Kernel.Information.Platform platform)
        {
            if (Hal.DeviceUtility.TestMdxPresence())
            {
                // Register rendering task.
                Framework.Hosting.Engine.Instance.Tasks.Enqueue(new RenderTask());

                return true;
            }
            return false;
        }
        private void displayProperties_SetValue(object sender, Proteus.Editor.Utility.PropertySpecEventArgs e)
        {
            // Find the corresponding property on the actor and transfer.
            Framework.Parts.IProperty[] properties = currentActor.Properties;

            foreach (Framework.Parts.IProperty p in properties)
            {
                if (p.Name == e.Property.Name)
                {
                    // Transfer value.
                    p.CurrentValue = e.Value;
                    break;
                }
            }
        }
 private void Instance_SelectionChanged(Proteus.Framework.Parts.IActor selectedActor, List<Proteus.Framework.Parts.IActor> selectedActors)
 {
     this.Actor = selectedActor;
 }
 public bool Initialize(Proteus.Framework.Hosting.Engine engine)
 {
     return true;
 }
        private void Instance_ActorModified(Proteus.Framework.Parts.IActor actor)
        {
            ActorNode newActorNode = BuildStep( actor );

            // Find the actor node that corresponds to the old actor.
            ActorNode oldNode = FindNode( actor );
            if (oldNode != null)
            {
                ActorNode parentNode = (ActorNode)oldNode.Parent;
                parentNode.Nodes.Remove( oldNode );
                parentNode.Nodes.Add( newActorNode );
            }
        }
 public bool OnUnload(Proteus.Kernel.Information.License license, Proteus.Kernel.Information.Version version, Proteus.Kernel.Information.Platform platform)
 {
     return true;
 }
 private void Instance_ActorRemoved(Proteus.Framework.Parts.IActor actor)
 {
     if (actor == currentActor)
     {
         this.Close();
     }
 }