Exemplo n.º 1
0
        private void ButtonCreatePacient_Click(object sender, EventArgs e)
        {
            Form createPacientForm = new FormCreatePacient(this, "create");

            Hide();
            createPacientForm.Show();
            createPacientForm.Enabled = true;
        }
Exemplo n.º 2
0
        private void ButtonUpdatePacient_Click(object sender, EventArgs e)
        {
            int  row = dataGridViewFormAdministratorPacients.SelectedCells[0].RowIndex;
            int  id  = Convert.ToInt32(dataGridViewFormAdministratorPacients.Rows[row].Cells[0].Value);
            Form createPacientForm = new FormCreatePacient(this, "update", id);

            Hide();
            createPacientForm.Show();
            createPacientForm.Enabled = true;
        }