public override void execute(AnomalousMvcContext context) { MedicalStateInfoModel stateInfo = context.getModel <MedicalStateInfoModel>(WizardStateInfoName); if (stateInfo == null) { stateInfo = new MedicalStateInfoModel(WizardStateInfoName); } context.createMedicalState(stateInfo); }
internal void createMedicalState(MedicalStateInfoModel stateInfo) { standaloneController.MedicalStateController.forceFinishBlend(); MedicalState createdState = standaloneController.MedicalStateController.createState("Baseline"); createdState.Notes.DataSource = stateInfo.DataSource; createdState.Notes.Notes = stateInfo.Notes; createdState.Notes.ProcedureDate = stateInfo.ProcedureDate; createdState.Name = stateInfo.StateName; if (stateInfo.ThumbInfo != null) { createdState.Thumbnail = ImageRenderer.renderImage(stateInfo.ThumbInfo); } standaloneController.MedicalStateController.addState(createdState); standaloneController.MedicalStateController.blendTo(createdState, 0.0f); }
public override void opening() { stateInfo = context.getModel <MedicalStateInfoModel>(wizardView.WizardStateInfoName); if (stateInfo == null) { stateInfo = new MedicalStateInfoModel("MissingStateInfo"); context.addModel(wizardView.WizardStateInfoName, stateInfo); } distortionWizard.OnlyText = stateInfo.DataSource; stateNameTextBox.OnlyText = stateInfo.StateName; notes.OnlyText = stateInfo.Notes; datePicker.Caption = stateInfo.ProcedureDate.ToString(); foreach (NotesThumbnail thumb in wizardView.Thumbnails) { thumbnailPicker.addThumbnail(thumb); } thumbnailPicker.updateThumbnails(); }
public void createMedicalState(MedicalStateInfoModel stateInfo) { core.createMedicalState(stateInfo); }