/* * */ private void optionsMenuItemClick(object sender, EventArgs e) { if (sender.Equals (editProfileMenuItem)) { EditProfileDialog editProfileDialog = new EditProfileDialog (); editProfileDialog.ShowDialog (); } else { ReviewResponseDataDialog reviewResponseDataDialog = new ReviewResponseDataDialog (); reviewResponseDataDialog.loadResponseData (userProfile.user.name); reviewResponseDataDialog.ShowDialog (); } }
// TODO Test that the dialog does not close before all valid data is entered. /* * Prompt for and obtain a new user profile. */ private void createNewUserProfile() { EditProfileDialog newProfileDialog = new EditProfileDialog (); newProfileDialog.prepareFieldsForNewProfileEntry (); newProfileDialog.ShowDialog (); }