Exemple #1
0
 private void tsmViewSurvey_Click(object sender, EventArgs e)
 {
     if (dgvSurvey.SelectedCells.Count == 1)
     {
         frmInfoLiteratureSurvey frmInfoLiteratureSurvey = new frmInfoLiteratureSurvey(dgvSurvey.CurrentRow.Cells[0].Value.ToString(), lsbSurvey.SelectedItem.ToString());
         frmInfoLiteratureSurvey.Show();
     }
 }
Exemple #2
0
 private void tsmOpenSurvey_Click(object sender, EventArgs e)
 {
     if (lsbSurvey.SelectedItem != null)
     {
         if (G.glb.lstSurveyLiterature.Exists(o =>
                                              o.SurveyTitle == lsbSurvey.SelectedItem.ToString() &&
                                              o.LiteratureTitle == txtTitle.Text))
         {
             frmInfoLiteratureSurvey frmInfoLiteratureSurvey = new frmInfoLiteratureSurvey(txtTitle.Text, lsbSurvey.SelectedItem.ToString());
             frmInfoLiteratureSurvey.Show();
         }
     }
 }