public void UpdateMessageAddress(string messageaddress) { MessageAddress = messageaddress; FileSelector.UpdateMessageAddress(MessageAddress); TranslateMode.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(TranslateMode))); ScaleMode.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(ScaleMode))); RotationMode.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(RotationMode))); Translate.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(Translate))); Scale.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(Scale))); Rotation.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(Rotation))); Counter.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(Counter))); GeometryFX.UpdateMessageAddress(String.Format("{0}{1}/", messageaddress, nameof(GeometryFX))); }
public Geometry(string messageaddress, ObservableCollection <OSCMessenger> oscmessengers, Mementor mementor) : base(oscmessengers, mementor) { MessageAddress = String.Format("{0}{1}/", messageaddress, nameof(Geometry)); Is3D = false; KeepAspectRatio = false; FileSelector = new FileSelector(MessageAddress, "Single", new List <string> { ".FBX", ".OBJ" }, oscmessengers, mementor); TranslateMode = new GeometryTranslate(MessageAddress + nameof(TranslateMode), oscmessengers, mementor); ScaleMode = new GeometryScale(MessageAddress + nameof(ScaleMode), oscmessengers, mementor); RotationMode = new GeometryRotation(MessageAddress + nameof(RotationMode), oscmessengers, mementor); Translate = new Slider(MessageAddress + nameof(Translate), oscmessengers, mementor); Scale = new Slider(MessageAddress + nameof(Scale), oscmessengers, mementor); Rotation = new Slider(MessageAddress + nameof(Rotation), oscmessengers, mementor); Counter = new Counter(MessageAddress, oscmessengers, mementor); GeometryFX = new GeometryFX(MessageAddress, oscmessengers, mementor); ResetCommand = new RelayCommand(p => Reset()); }