Exemplo n.º 1
0
        private void editBtn_Click(object sender, EventArgs e)
        {
            IEnumerator it = allPatientAnalysis.SelectedRows.GetEnumerator();

            if (it.MoveNext())
            {
                DataGridViewRow    row     = (DataGridViewRow)it.Current;
                DataGridViewCell   cell    = row.Cells[1];
                string             value   = cell.Value.ToString();
                DataService        service = new DataService();
                DdtPatientAnalysis ll      = service.queryObject <DdtPatientAnalysis>(@"Select * from ddt_patient_analysis where r_object_id ='" + value + "'");
                Analizi            form    = new Analizi(hospitalSession, ll);
                form.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void addAnalysis_Click(object sender, EventArgs e)
        {
            Analizi form = new Analizi(hospitalSession, null);

            form.ShowDialog();
        }