/// <summary> /// Handles the ButtonCustomClick event of the textBoxX1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void textBoxX1_ButtonCustomClick(object sender, EventArgs e) { var patientBrowse = new PatientBrowseForm(txtSeachName.Text.Trim(),this.ClinicId); var result = patientBrowse.ShowDialog(this); if (result != System.Windows.Forms.DialogResult.Yes) return; UpdateForm(patientBrowse.SelectedPatient); }
/// <summary> /// Handles the ButtonCustomClick event of the textBoxX1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void textBoxX1_ButtonCustomClick(object sender, EventArgs e) { var patientBrowse = new PatientBrowseForm(txtSeachName.Text.Trim(), this.ClinicId); var result = patientBrowse.ShowDialog(this); if (result != System.Windows.Forms.DialogResult.Yes) { return; } UpdateForm(patientBrowse.SelectedPatient); }
/// <summary> /// Handles the ButtonCustomClick event of the textBoxX1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void TextBoxX1ButtonCustomClick(object sender, EventArgs e) { var patientBrowse = new PatientBrowseForm(); var result = patientBrowse.ShowDialog(this); if (result != DialogResult.Yes) { return; } this._selectedPatient = patientBrowse.SelectedPatient; UpdateForm(patientBrowse.SelectedPatient); UpdateButtonStatus(); }
/// <summary> /// Handles the ButtonCustomClick event of the textBoxX1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void TextBoxX1ButtonCustomClick(object sender, EventArgs e) { var patientBrowse = new PatientBrowseForm(); var result = patientBrowse.ShowDialog(this); if (result != DialogResult.Yes) return; this._selectedPatient = patientBrowse.SelectedPatient; UpdateForm(patientBrowse.SelectedPatient); UpdateButtonStatus(); }