private void All_Session_Grid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            selected = e.RowIndex;
            DataGridViewRow row = new DataGridViewRow();

            row = All_Session_Grid.Rows[selected];
            if (e.ColumnIndex == 0)
            {
                data1    = row.Cells[2].Value;
                data2    = row.Cells[1].Value;
                passdate = Convert.ToString(data1);
                med      = Convert.ToString(data2);
                id       = Convert.ToString(car);
                View_Session__Notes note = new View_Session__Notes(id, med, passdate);
                note.Show();
            }
        }
Esempio n. 2
0
        private void Patient_Session_Grid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            selectint = e.RowIndex;
            DataGridViewRow row = new DataGridViewRow();

            row = Patient_Session_Grid.Rows[selectint];
            if (e.ColumnIndex == 0)
            {
                if (!(row.Cells[2].Value == DBNull.Value || row.Cells[2].Value == null || String.IsNullOrWhiteSpace(row.Cells[2].Value.ToString())))
                {
                    dat       = row.Cells[2].Value;
                    datecarry = Convert.ToString(dat);
                    View_Session__Notes vio = new View_Session__Notes(Patient_ID_SesLabel.Text, Sess_Med_Name.Text, datecarry);
                    vio.Show();
                }
            }
        }