Exemplo n.º 1
0
 private void repositoryItemButtonEditOtherChoices_ButtonClick(object sender, EventArgs e)
 {
     //if (editorOtherChoice == null) {
         campaignQuestionnaire.Form.Settings.AnswerOptions[SelectedIndex] = propertyGridControl1.SelectedObject as AnswerOption;
         editorOtherChoice = new EditorDialogOtherChoices(campaignQuestionnaire, propertyGridControl1);
         editorOtherChoice.SelectedIndex = listBoxControlMembers.SelectedIndex;
         editorOtherChoice.StartPosition = FormStartPosition.CenterParent;
         editorOtherChoice.ShowDialog();
     //} else {
     //    editorOtherChoice.ShowDialog();
     //}
 }
Exemplo n.º 2
0
 private void repositoryItemButtonEditMeetingPlaceDetails_Click(object sender, EventArgs e)
 {
     campaignQuestionnaire.Form.Settings.AnswerOptions[SelectedIndex] = propertyGridControl1.SelectedObject as AnswerOption;
     editorOtherChoice = new EditorDialogOtherChoices(campaignQuestionnaire, propertyGridControl1, OtherChoiceOptions.MeetingPlaceDetails);
     editorOtherChoice.SelectedIndex = listBoxControlMembers.SelectedIndex;
     editorOtherChoice.StartPosition = FormStartPosition.CenterParent;
     editorOtherChoice.ShowDialog();
 }