示例#1
0
        private void btn_agenda_Click(object sender, EventArgs e)
        {
            Frm_Agenda form = new Frm_Agenda();

            form.Show();

            this.Hide();
        }
示例#2
0
        private void dvg_paciente_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                Global.IDPACIENTE = int.Parse(dvg_paciente.Rows[e.RowIndex].Cells[0].Value.ToString());

                if (Global.ABRIU_PESQUISA_PACIENTE)
                {
                    Frm_Agenda form = new Frm_Agenda();
                    form.Show();
                }
                else
                {
                    Frm_Paciente form = new Frm_Paciente();
                    form.Show();
                }

                this.Hide();
            }
        }