Exemplo n.º 1
0
 private void pictureEdit1_DoubleClick(object sender, EventArgs e)
 {
     ComicPro.StrDuongDanPdf = Application.StartupPath + "\\pdf\\" + lbl_matua.Text + "\\" + lbl_matruyen.Text + ".pdf";
     if (File.Exists(ComicPro.StrDuongDanPdf))
     {
         var i = grvViewDanhMuc.FocusedRowHandle;
         ComicPro.StrCaption = grvViewDanhMuc.GetRowCellValue(i, "tentruyen").ToString();
         var f = new FrmReadComic();
         f.Show();
     }
 }
Exemplo n.º 2
0
        private void winExplorerView1_ItemClick(object sender, WinExplorerViewItemClickEventArgs e)
        {
            var i = winExplorerView1.FocusedRowHandle;

            ComicPro.StrDuongDanPdf = Application.StartupPath + "\\pdf\\" + (string)winExplorerView1.GetRowCellValue(i, col_matua) + "\\" + (string)winExplorerView1.GetRowCellValue(i, col_matruyen) + ".pdf";
            if (File.Exists(ComicPro.StrDuongDanPdf))
            {
                ComicPro.StrCaption = (string)winExplorerView1.GetRowCellValue(i, col_tentruyen);
                var f = new FrmReadComic();
                f.Show();
            }
            else
            {
                XtraMessageBox.Show("Không tồn tại file.", "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }