Example #1
0
 /// <summary>
 /// Handles the Click event of the btnCheckingHistory 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 BtnCheckingHistoryClick(object sender, EventArgs e)
 {
     if (this._selectedPatient == null) return;
     var selected = (Patient)this.bdsPatient.Current;
     if (selected == null) return;
     var historyForm = new CheckUpHistory(selected.Id);
     historyForm.ShowDialog(this);
 }
Example #2
0
        private void btnCheckingHistory_Click(object sender, EventArgs e)
        {
            var selected = (Patient)this.bdgPatient.DataSource;

            if (selected == null)
            {
                return;
            }
            var historyForm = new CheckUpHistory(selected.Id);

            historyForm.ShowDialog(this);
        }
        private void grdPatient_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            this.SelectedPatient = (Patient)this.bdgPatient.List[e.RowIndex];
            if (this.SelectedPatient == null) return;
            var historyForm = new CheckUpHistory(SelectedPatient.Id);
            historyForm.ShowDialog(this);
            this.bdgPatient.Clear();
            if (AppContext.LoggedInUser.Role > MedicineRoles.SupperManager)
                this.bdgPatient.DataSource = patientRepo.GetByNameAndYear(this.txtPatientName.Text, (int?)this.txtBirthYear.ValueObject, AppContext.CurrentClinic.Id);
            else this.bdgPatient.DataSource = patientRepo.GetByNameAndYear(this.txtPatientName.Text, (int?)this.txtBirthYear.ValueObject);

        }
Example #4
0
        /// <summary>
        /// Handles the Click event of the btnCheckingHistory 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 BtnCheckingHistoryClick(object sender, EventArgs e)
        {
            if (this._selectedPatient == null)
            {
                return;
            }
            var selected = (Patient)this.bdsPatient.Current;

            if (selected == null)
            {
                return;
            }
            var historyForm = new CheckUpHistory(selected.Id);

            historyForm.ShowDialog(this);
        }
Example #5
0
        private void grdPatient_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            this.SelectedPatient = (Patient)this.bdgPatient.List[e.RowIndex];
            if (this.SelectedPatient == null)
            {
                return;
            }
            var historyForm = new CheckUpHistory(SelectedPatient.Id);

            historyForm.ShowDialog(this);
            this.bdgPatient.Clear();
            if (AppContext.LoggedInUser.Role > MedicineRoles.SupperManager)
            {
                this.bdgPatient.DataSource = patientRepo.GetByNameAndYear(this.txtPatientName.Text, (int?)this.txtBirthYear.ValueObject, AppContext.CurrentClinic.Id);
            }
            else
            {
                this.bdgPatient.DataSource = patientRepo.GetByNameAndYear(this.txtPatientName.Text, (int?)this.txtBirthYear.ValueObject);
            }
        }
Example #6
0
 /// <summary>
 /// Handles the Click event of the btnCheckingHistory 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 btnCheckingHistory_Click(object sender, EventArgs e) {
     var selected = (Patient)this.bdsPatient.DataSource;
     if (selected == null) return;
     var historyForm = new CheckUpHistory(selected.Id);
     historyForm.ShowDialog(this);
 }