示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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();
        }
示例#4
0
 /// <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();
 }