private void Double_Session_List_FormClosing(object sender, FormClosingEventArgs e)
        {
            Patient_Double_Med_History jo = new Patient_Double_Med_History(Patient_ID_Lab.Text, Patient_Name_Lab.Text);

            this.Hide();
            jo.Show();
        }
Exemple #2
0
        private void Patients_ID_View_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            selectedrownindex = e.RowIndex;
            DataGridViewRow row = new DataGridViewRow();

            row = Patients_ID_View.Rows[selectedrownindex];
            if (e.ColumnIndex == 0)
            {
                if (!(row.Cells[2].Value == DBNull.Value || row.Cells[2].Value == null || String.IsNullOrWhiteSpace(row.Cells[2].Value.ToString())))
                {
                    g     = row.Cells[6].Value;
                    g2    = row.Cells[2].Value;
                    pasd  = Convert.ToString(g);
                    pasd2 = Convert.ToString(g2);
                    this.Hide();
                    Patient_Med_History mef = new Patient_Med_History(pasd, pasd2);
                    mef.Show();
                }
                else
                {
                }
            }
            if (e.ColumnIndex == 1)
            {
                if (!(row.Cells[2].Value == DBNull.Value || row.Cells[2].Value == null || String.IsNullOrWhiteSpace(row.Cells[2].Value.ToString())))
                {
                    g     = row.Cells[6].Value;
                    g2    = row.Cells[2].Value;
                    pasd  = Convert.ToString(g);
                    pasd2 = Convert.ToString(g2);
                    Patient_Double_Med_History jok = new Patient_Double_Med_History(pasd, pasd2);
                    this.Hide();
                    jok.Show();
                }
            }
        }