/// <summary> /// Creates the new object. /// </summary> /// <param name="pos">The position.</param> /// <returns> /// The new object /// </returns> public PatientViewModel CreateNewObject(VRPosition pos) { PatientViewModel character = new PatientViewModel(pos); PatientView view = new PatientView(); this.LinkMVVM(view, character); return character; }
public void SetUp() { position = new VRPosition(42, 42, 42); patient = new PatientViewModel(position); }
/// <summary> /// Creates the object. /// </summary> /// <param name="input">The input.</param> public override void CreateObject(JObject input) { VRPosition position = this.GetPositionXYR(input); position.Move(position.X, position.Y, position.Rotation - DefaultRotation); this.GuiBeginInvoke(new Action(() => this.patient = this.factory.CreateNewObject(position))); }