Você está na página 1de 3

PontificiaUniversidad Catlicadel Ecuador SedeSanto Domingo

Escuela de Ingeniera de Sistemas

PONTIFICIA UNIVERSIDAD CATOLICA DEL ECUADOR SEDE SANTO


DOMINGO
ESCUELA DE SISTEMAS
Materia: Programacin Avanzada

Facilitador:

Ing. Fausto Orozco, Mg.


Integrantes: Richard Lema
Fecha de Presentacin: 27/06/2015

TEMA: Practica en C# mtodos Get para obtener datos del sistema


(Assemblyinfo)
1. Captura de pantalla

2. Cdigo de las funciones y llamado

3. /*+++++++++++++++++++++++++++++++metodo++++++++++++++
+++++++++++++++++++++*/
4. /*++++++++++++++++++++++++nombre del producto+++++++++*/
5.
public String Assamblyproduct
6.
{
7.
get {

Pgina 1 de 3

PontificiaUniversidad Catlicadel Ecuador SedeSanto Domingo


Escuela de Ingeniera de Sistemas

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.
52.

object[] atributo =
Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAtt
ribute),false);
if (atributo.Length == 0)
return "";
return ((AssemblyProductAttribute) atributo[0]).Product;
}
}
/*+++++++++++++++++++++++++++++++copyrigth++++++++++
+++++++++++++++++++++++++*/
public String AssemblyCopyright
{
get
{
object[] atributo =
Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightA
ttribute), false);
if (atributo.Length == 0)
return "";
return ((AssemblyCopyrightAttribute)atributo[0]).Copyright;
}
}
/*+++++++nombre de la compaa+++++++++++++++++++++*/
public String AssemblyCompany
{
get
{
object[] atributo =
Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyA
ttribute), false);
if (atributo.Length == 0)
return "";
return ((AssemblyCompanyAttribute)atributo[0]).Company;
}
}
/*+++++++++++++++++++++++++++++++version+++++++++++
++++++++++++++++++++++++*/
public String Assemblyversion
{
get
{
object[] atributo =
Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersion
Attribute), false);
if (atributo.Length == 0)
return "";
return ((AssemblyFileVersionAttribute)atributo[0]).Version;
}
}

Pgina 2 de 3

PontificiaUniversidad Catlicadel Ecuador SedeSanto Domingo


Escuela de Ingeniera de Sistemas

53.
54.
55.
56.
57.
58.
59.
60.

/*+++++++++++++++++++++++++++++++descripcin ++++++++
++++++*/
public String Assemblydescripcion
{
get
{
object[] atributo =
Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptio
nAttribute), false);
if (atributo.Length == 0)
return "";
return ((AssemblyDescriptionAttribute)atributo[0]).Description;
}
}

61.
62.
63.
64.
65.
66.
67.
68.
69. /*+++++++++++++++++Llamado+++++++++++++++++++++++++++
++++++++*/
70.
71.
private void frm_flash_Load(object sender, EventArgs e)
72.
{
73.
74.
75.
76.

77.

this.label_nombredelproducto.Text=Assamblyproduct;
this.label_Copyright.Text = AssemblyCopyright;
this.label_company.Text = AssemblyCompany;
this.label_versin.Text = Assemblyversion;
this.richTextBox_descripcin.Text = Assemblydescripcion;
}

Pgina 3 de 3

Você também pode gostar