예제 #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);
 }
예제 #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);
     }
 }
예제 #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);
     }
 }
예제 #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);
        }