public NotesGUI(NotesView wizardView, AnomalousMvcContext context, MyGUIViewHost viewHost) : base("Medical.GUI.DistortionWizard.Notes.NotesGUI.layout", wizardView, context, viewHost) { stateNameTextBox = widget.findWidget("Notes/DistortionName") as EditBox; stateNameTextBox.EventEditTextChange += new MyGUIEvent(stateNameTextBox_EventEditTextChange); datePicker = widget.findWidget("Notes/DateCreated") as EditBox; distortionWizard = widget.findWidget("Notes/DistortionWizard") as EditBox; notes = widget.findWidget("Notes/NotesText") as EditBox; notes.EventEditTextChange += new MyGUIEvent(notes_EventEditTextChange); thumbnailPicker = new ThumbnailPickerGUI(context.ImageRenderer, widget.findWidget("Notes/Thumbnails") as ScrollView); thumbnailPicker.SelectedThumbnailChanged += thumbnailPicker_SelectedThumbnailChanged; }
void thumbnailPicker_SelectedThumbnailChanged(ThumbnailPickerGUI thumbPicker) { stateInfo.ThumbInfo = thumbPicker.SelectedThumbnailProperties; }