private Matching_Record_Choice_Enum get_matching_record_choice(string matching_message, string field, string matching_record) { // Display matching row dialog form if (matching_record_dialog_form_always_use_value == Matching_Record_Choice_Enum.Undefined) { // Get users input Forms.Matching_Record_Dialog_Form matching_record_dialog_form = new Forms.Matching_Record_Dialog_Form(String.Format(matching_message, field, matching_record), allow_overlay); matching_record_dialog_form.ShowDialog(); // Did user select always answer this way? if (matching_record_dialog_form.Always_Use_Option_Flag) { matching_record_dialog_form_always_use_value = matching_record_dialog_form.Selected_Option_Value; } // Return the value return(matching_record_dialog_form.Selected_Option_Value); } else { return(matching_record_dialog_form_always_use_value); } }
private Matching_Record_Choice_Enum get_matching_record_choice(string matching_message, string field, string matching_record) { // Display matching row dialog form if (matching_record_dialog_form_always_use_value == Matching_Record_Choice_Enum.Undefined) { // Get users input Forms.Matching_Record_Dialog_Form matching_record_dialog_form = new Forms.Matching_Record_Dialog_Form(String.Format( matching_message, field, matching_record ), allow_overlay ); matching_record_dialog_form.ShowDialog(); // Did user select always answer this way? if (matching_record_dialog_form.Always_Use_Option_Flag) matching_record_dialog_form_always_use_value = matching_record_dialog_form.Selected_Option_Value; // Return the value return matching_record_dialog_form.Selected_Option_Value; } else { return matching_record_dialog_form_always_use_value; } }