Beispiel #1
0
        private void registrarAddPatientButton_Click(object sender, EventArgs e)
        {
            try
            {
                modifyData();
                RegistrarAddModifyPatientForm registrarAddPatientForm = new RegistrarAddModifyPatientForm("Modify Patient", "Confirm", dataFromGrid[(int)index.ID], dataFromGrid[(int)index.FNAME], dataFromGrid[(int)index.LNAME], dataFromGrid[(int)index.PESEL],
                                                                                                          dataFromGrid[(int)index.PLACE], dataFromGrid[(int)index.STREET], dataFromGrid[(int)index.ZIPCODE]);
                registrarAddPatientForm.ShowDialog(this);
                refreshGrid();
            }

            catch
            {
                ;
            }
        }
Beispiel #2
0
        private void registrarModifyPatientButton_Click(object sender, EventArgs e)
        {
            //modify patient
            if (RegistrarAddVisitDataGridView.SelectedRows.Count == 1 && RegistrarAddVisitDataGridView.Rows.Count > 0)
            {
                int           curRowIndex  = RegistrarAddVisitDataGridView.CurrentCell.RowIndex;
                List <string> dataFromGrid = new List <string>();

                for (int i = 0; i < 9; i++)
                {
                    dataFromGrid.Add(RegistrarAddVisitDataGridView.Rows[curRowIndex].Cells[i].Value.ToString());
                }

                RegistrarAddModifyPatientForm registrarSelectPatient = new RegistrarAddModifyPatientForm("Modify Patient", "Confirm", dataFromGrid[(int)index.ID], dataFromGrid[(int)index.FNAME], dataFromGrid[(int)index.LNAME], dataFromGrid[(int)index.PESEL],
                                                                                                         dataFromGrid[(int)index.PLACE], dataFromGrid[(int)index.STREET], dataFromGrid[(int)index.ZIPCODE], dataFromGrid[(int)index.HOUSE], dataFromGrid[(int)index.FLAT]);
                registrarSelectPatient.ShowDialog(this);
            }
            else
            {
                MessageBox.Show("Select patient !", "Select row ...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            RegistrarAddModifyPatientForm registrarSelectPatient = new RegistrarAddModifyPatientForm();

            registrarSelectPatient.ShowDialog(this);
        }