Ejemplo n.º 1
0
        private void btnReadFull_Click(object sender, EventArgs e)
        {
            if (this.review.Paper.File == null || this.review.Paper.File.Equals(""))
            {
                MessageBox.Show("The full paper was not loaded!");
                return;
            }
            PDFDocViewer docviewer = new PDFDocViewer(review.Paper.File);

            docviewer.Show();
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (this.review.Paper.Abs == null || this.review.Paper.Abs.File == null || this.review.Paper.Abs.File.Equals(""))
            {
                MessageBox.Show("The abstract was not loaded!");
                return;
            }
            PDFDocViewer docviewer = new PDFDocViewer(review.Paper.Abs.File);

            docviewer.Show();
        }
Ejemplo n.º 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count != 0)
     {
         Paper _object = (Paper)dataGridView1.SelectedRows[0].DataBoundItem;
         if (_object.Abs == null || _object.Abs.File == null || _object.Abs.File == "")
         {
             MessageBox.Show("The abstract file was not loaded.\n Try to open the full paper");
             return;
         }
         PDFDocViewer doc_viewer = new PDFDocViewer(_object.Abs.File);
         doc_viewer.Show();
     }
 }
Ejemplo n.º 4
0
        private void btnViewRecomandation_Click(object sender, EventArgs e)
        {
            if (dataGridViewReviews.SelectedRows.Count == 0)
            {
                MessageBox.Show("Select a review first");
                return;
            }
            Review r = dataGridViewReviews.SelectedRows[0].DataBoundItem as Review;

            if (r.Recomandation == null || r.Recomandation.File == null || r.Recomandation.File == "")
            {
                MessageBox.Show("No recommandation was added.");
                return;
            }
            PDFDocViewer docvw = new PDFDocViewer(r.Recomandation.File);

            docvw.Show();
        }