예제 #1
0
 public override bool combine(Tool other)
 {
     if (other is ChangeNameTool)
     {
         ChangeNameTool cnt = (ChangeNameTool)other;
         if (cnt.named == named && cnt.oldName == name)
         {
             name      = cnt.name;
             timeStamp = cnt.timeStamp;
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
        /**
         * Sets the new name of the scene.
         *
         * @param name
         *            Name of the scene
         */
        public void setName(string name)
        {
            ChangeNameTool tool = new ChangeNameTool(scene, name);

            controller.addTool(tool);
        }