-
Notifications
You must be signed in to change notification settings - Fork 0
/
FrmMenuAdministrador.cs
51 lines (46 loc) · 1.36 KB
/
FrmMenuAdministrador.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace VisionTFI
{
public partial class FrmMenuAdministrador : Form
{
public FrmMenuAdministrador()
{
InitializeComponent();
}
private void FrmMenuAdministrador_Load(object sender, EventArgs e)
{
Focus();
MostrarAyuda();
}
private void MostrarAyuda()
{
string ruta = @"C:\Users\Usuario\source\repos\VisionManagement\bin\Debug\VisionManagement- Ayuda en línea- Manual de administrador.pdf";
try
{
string rutaCompleta = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ruta);
if (System.IO.File.Exists(rutaCompleta))
{
axAcroPDF2.src = rutaCompleta;
}
else
{
MessageBox.Show("El pdf no se encuentra");
this.Close();
}
}
catch (Exception)
{
MessageBox.Show("No se encontro archivo de ayuda. Contactese con el administrador!");
this.Close();
}
}
}
}