Exemple #1
0
 /// <summary>
 /// Handles the Click event of the btnCheck 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 BtnCheckClick(object sender, EventArgs e)
 {
     if (this._selectedPatient == null) return;
     var checkUpRegister = new CheckUpRegister(this._selectedPatient);
     var result = checkUpRegister.ShowDialog(this);
     if (result == DialogResult.Cancel) return;
     UpdateForm(this._selectedPatient);
 }
Exemple #2
0
 /// <summary>
 /// Handles the Click event of the btnCheck 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 btnCheck_Click(object sender, EventArgs e)
 {
     if (this.bdsPatient.DataSource is Patient)
     {
         var selected = (Patient) this.bdsPatient.DataSource;
         if (selected == null) return;
         var checkUpRegister = new CheckUpRegister(selected);
         checkUpRegister.ShowDialog(this);
         UpdateForm((Patient)this.bdsPatient.DataSource);
     }
 }
Exemple #3
0
 /// <summary>
 /// Handles the Click event of the btnCheck 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 btnCheck_Click(object sender, EventArgs e)
 {
     if (this.bdsPatient.DataSource is Patient)
     {
         var selected = (Patient)this.bdsPatient.DataSource;
         if (selected == null)
         {
             return;
         }
         var checkUpRegister = new CheckUpRegister(selected);
         checkUpRegister.ShowDialog(this);
         UpdateForm((Patient)this.bdsPatient.DataSource);
     }
 }
Exemple #4
0
        /// <summary>
        /// Handles the Click event of the btnCheck 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 BtnCheckClick(object sender, EventArgs e)
        {
            if (this._selectedPatient == null)
            {
                return;
            }
            var checkUpRegister = new CheckUpRegister(this._selectedPatient);
            var result          = checkUpRegister.ShowDialog(this);

            if (result == DialogResult.Cancel)
            {
                return;
            }
            UpdateForm(this._selectedPatient);
        }