Ejemplo n.º 1
0
 public AddVisitForm(PatientInfoForm form, int id)
 {
     InitializeComponent();
     owner = form;
     patient_id = id;
     save_visit_btn.Visible = true;
 }
Ejemplo n.º 2
0
 //ediitng
 public AddVisitForm(PatientInfoForm form, int pId, int vId)
 {
     InitializeComponent();
     owner = form;
     patient_id = pId;
     visit_id = vId;
     editing = true;
     save_edits_btn.Visible = true;
     fillFormFromVisit();
 }
Ejemplo n.º 3
0
 private void patients_dataGridView_KeyDown(object sender, KeyEventArgs e)
 {
     int index = patients_dataGridView.CurrentCell.RowIndex;
      if (e.KeyCode == Keys.Enter && this.patients_dataGridView.SelectedRows.Count != 0)
      {
     DataGridViewRow row = patients_dataGridView.CurrentRow;
     PatientInfoForm form = new PatientInfoForm(Int32.Parse(row.Cells["id"].Value.ToString()), this);
     form.Show();
     e.Handled = true;
      }
      else if (e.KeyCode == Keys.Escape)
      {
     this.patients_dataGridView.ClearSelection();
     this.delete_btn.Enabled = false;
     this.edit_btn.Enabled = false;
      }
 }
Ejemplo n.º 4
0
 private void patients_dataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
      {
     DataGridViewRow row = this.patients_dataGridView.Rows[e.RowIndex];
     PatientInfoForm form = new PatientInfoForm(Int32.Parse(row.Cells["id"].Value.ToString()), this);
     form.Show();
      }
 }