CapicuaGenGaspar 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/CODE_OF_CONDUCT.md +49 -0
  6. data/CapicuaGenGaspar.gemspec +60 -0
  7. data/Gemfile +4 -0
  8. data/Gemfile.lock +33 -0
  9. data/LICENSE +165 -0
  10. data/README.md +41 -0
  11. data/Rakefile +6 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/lib/CapicuaGenGaspar/Business/CSSqlEntitityInterface/Source/cs_sql_entity_interface_feature.rb +96 -0
  15. data/lib/CapicuaGenGaspar/Business/CSSqlEntitityInterface/Template/table_interface.erb +49 -0
  16. data/lib/CapicuaGenGaspar/Business/CSSqlEntity/Source/cs_sql_entity_feature.rb +103 -0
  17. data/lib/CapicuaGenGaspar/Business/CSSqlEntity/Template/table_entity.erb +51 -0
  18. data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Source/cs_header_footer_feature.rb +148 -0
  19. data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Template/footer.erb +37 -0
  20. data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Template/header.erb +43 -0
  21. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/EnvDTE.dll +0 -0
  22. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/EnvDTE80.dll +0 -0
  23. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/RunCodeMaidCleaner.exe +0 -0
  24. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/RunCodeMaidCleaner.exe.config +52 -0
  25. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/stdole.dll +0 -0
  26. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Source/code_maid_cleaner_feature.rb +162 -0
  27. data/lib/CapicuaGenGaspar/DataAccess/CSConnectionProvider/Source/cs_db_connection_provider_feature.rb +90 -0
  28. data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Source/cs_sql_data_access_feature.rb +106 -0
  29. data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access.erb +154 -0
  30. data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access_exception.erb +36 -0
  31. data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access_table.erb +298 -0
  32. data/lib/CapicuaGenGaspar/Entities/CSEntity/Source/entity_field_schema.rb +100 -0
  33. data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Source/cs_about_windows_form_feature.rb +85 -0
  34. data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.designer.erb +211 -0
  35. data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.erb +127 -0
  36. data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.resx.erb +535 -0
  37. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Source/cs_catalog_windows_form_feature.rb +146 -0
  38. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.Designer.erb +363 -0
  39. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.erb +320 -0
  40. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.resx.erb +2407 -0
  41. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogState.erb +51 -0
  42. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Source/cs_mdi_windows_form_feature.rb +93 -0
  43. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.Designer.erb +316 -0
  44. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.erb +161 -0
  45. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.resx.erb +2504 -0
  46. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MsgboxConsts.erb +31 -0
  47. data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Source/cs_splash_windows_feature.rb +87 -0
  48. data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.designer.erb +141 -0
  49. data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.erb +160 -0
  50. data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.resx.erb +535 -0
  51. data/lib/CapicuaGenGaspar/Mixins/about_mixin.rb +55 -0
  52. data/lib/CapicuaGenGaspar/Mixins/catalog_mixin.rb +65 -0
  53. data/lib/CapicuaGenGaspar/Mixins/cs_app_config_mixin.rb +41 -0
  54. data/lib/CapicuaGenGaspar/Mixins/cs_db_connection_provider_mixin.rb +67 -0
  55. data/lib/CapicuaGenGaspar/Mixins/cs_namespace_mixin.rb +53 -0
  56. data/lib/CapicuaGenGaspar/Mixins/entity_interface_mixin.rb +57 -0
  57. data/lib/CapicuaGenGaspar/Mixins/entity_mixin.rb +58 -0
  58. data/lib/CapicuaGenGaspar/Mixins/entity_sql_table_mixin.rb +58 -0
  59. data/lib/CapicuaGenGaspar/Mixins/main_form_mixin.rb +55 -0
  60. data/lib/CapicuaGenGaspar/Mixins/splash_mixin.rb +54 -0
  61. data/lib/CapicuaGenGaspar/Proyect/CSProyect/Source/cs_proyect_feature.rb +140 -0
  62. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Source/cs_proyect_rest_ful_feature.rb +82 -0
  63. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/AssemblyInfo.erb +59 -0
  64. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/ExcepcionControlada.erb +38 -0
  65. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Proyect.erb +114 -0
  66. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Soluction.erb +54 -0
  67. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Web.erb +66 -0
  68. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Source/cs_proyect_windows_form_feature.rb +85 -0
  69. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/App.erb +32 -0
  70. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/AssemblyInfo.erb +59 -0
  71. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/ControlExcepciones.erb +49 -0
  72. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/ExcepcionControlada.erb +40 -0
  73. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Program.erb +46 -0
  74. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Proyect.erb +138 -0
  75. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Soluction.erb +55 -0
  76. data/lib/CapicuaGenGaspar/Tools/message_helper.rb +43 -0
  77. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Source/cs_rest_ful_catalog_feature.rb +176 -0
  78. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/CatalogState.erb +51 -0
  79. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/Catalogs.erb +58 -0
  80. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/Catalogs.svc.erb +24 -0
  81. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/ICatalogs.erb +58 -0
  82. data/lib/CapicuaGenGaspar/gaspar.rb +44 -0
  83. data/lib/CapicuaGenGaspar/version.rb +3 -0
  84. metadata +216 -0
@@ -0,0 +1,31 @@
1
+ <%
2
+ #encoding: UTF-8
3
+
4
+ =begin
5
+
6
+ CapicuaGen
7
+
8
+ CapicuaGen es un software que ayuda a la creación automática de
9
+ sistemas empresariales a través de la definición y ensamblado de
10
+ diversos generadores de características.
11
+
12
+ El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
13
+ del 2016.
14
+
15
+ Puede modificar y distribuir este software, según le plazca, y usarlo
16
+ para cualquier fin ya sea comercial, personal, educativo, o de cualquier
17
+ índole, siempre y cuando incluya este mensaje, y se permita acceso el
18
+ código fuente.
19
+
20
+ Este software es código libre, y se licencia bajo LGPL.
21
+
22
+ Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
+ =end
24
+ %>namespace <%=generation_attributes[:namespace]%>
25
+ {
26
+ partial class <%=template_target.class_name%>
27
+ {
28
+ public const string AVISO = "A V I S O";
29
+ public const string ERROR = "E R R O R";
30
+ }
31
+ }
@@ -0,0 +1,87 @@
1
+ =begin
2
+
3
+ CapicuaGen
4
+
5
+ CapicuaGen es un software que ayuda a la creación automática de
6
+ sistemas empresariales a través de la definición y ensamblado de
7
+ diversos generadores de características.
8
+
9
+ El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
10
+ del 2016.
11
+
12
+ Puede modificar y distribuir este software, según le plazca, y usarlo
13
+ para cualquier fin ya sea comercial, personal, educativo, o de cualquier
14
+ índole, siempre y cuando incluya este mensaje, y se permita acceso el
15
+ código fuente.
16
+
17
+ Este software es código libre, y se licencia bajo LGPL.
18
+
19
+ Para más información consultar http://www.gnu.org/licenses/lgpl.html
20
+ =end
21
+
22
+
23
+ require 'active_support/core_ext/object/blank'
24
+
25
+ require_relative '../../../gaspar'
26
+
27
+
28
+ module CapicuaGen::Gaspar
29
+
30
+ # Caracteristica generadora de una pantalla de Bienvenida
31
+ class CSSplashWindowsFeature < CapicuaGen::TemplateFeature
32
+ include CapicuaGen
33
+
34
+
35
+ public
36
+
37
+ # Inicializa la caracteristica
38
+ def initialize(values= {})
39
+ super(values)
40
+
41
+ # Configuro los tipos si estos no han sido configurados previamente
42
+ self.types= [:gui, :splash_form] if self.types.blank?
43
+
44
+ # Configuro los templates
45
+ set_template('splashForm', Template.new(:file => 'SplashForm.erb'))
46
+ set_template('splashForm.designer', Template.new(:file => 'SplashForm.Designer.erb'))
47
+ set_template('splashForm.resx', Template.new(:file => 'SplashForm.resx.erb'))
48
+
49
+
50
+ end
51
+
52
+ # Resetea los atributos personalizados de la caracteristica (antes de establecer el generador)
53
+ def reset_attributes
54
+ self.generation_attributes[:out_dir] = nil
55
+ self.generation_attributes[:namespace]= nil
56
+ end
57
+
58
+ # Configura los atributos personalizados de la caracteristica (antes de establecer el generador)
59
+ def configure_attributes()
60
+ self.generation_attributes[:out_dir] = "#{self.generation_attributes[:out_dir]}/#{self.generation_attributes[:namespace]}/Windows.Forms" unless self.generation_attributes.has_in_self?(:out_dir)
61
+ self.generation_attributes[:namespace]= "#{self.generation_attributes[:namespace]}.Windows.Forms" unless self.generation_attributes.has_in_self?(:namespace)
62
+ end
63
+
64
+ # Configura los objetivos de las platillas (despues de establecer el generador)
65
+ def configure_template_targets
66
+
67
+
68
+ # Configuro los templates
69
+ set_template_target('splashForm', TemplateTarget.new(:out_file => "#{get_class_name}.cs", :types => :proyect_file, :class_name => get_class_name))
70
+ set_template_target('splashForm.designer', TemplateTarget.new(:out_file => "#{get_class_name}.Designer.cs", :types => :proyect_file, :class_name => get_class_name))
71
+ set_template_target('splashForm.resx', TemplateTarget.new(:out_file => "#{get_class_name}.resx", :types => :proyect_file, :class_name => get_class_name))
72
+
73
+ end
74
+
75
+ # Obtiene el nombre de la clase
76
+ def get_class_name
77
+ return "SplashForm"
78
+ end
79
+
80
+ # Obtiene el nombre completo de la clase
81
+ def get_class_full_name
82
+ return "#{self.generation_attributes[:namespace]}.#{get_class_name}"
83
+ end
84
+
85
+
86
+ end
87
+ end
@@ -0,0 +1,141 @@
1
+ <%
2
+ #encoding: UTF-8
3
+
4
+ =begin
5
+
6
+ CapicuaGen
7
+
8
+ CapicuaGen es un software que ayuda a la creación automática de
9
+ sistemas empresariales a través de la definición y ensamblado de
10
+ diversos generadores de características.
11
+
12
+ El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
13
+ del 2016.
14
+
15
+ Puede modificar y distribuir este software, según le plazca, y usarlo
16
+ para cualquier fin ya sea comercial, personal, educativo, o de cualquier
17
+ índole, siempre y cuando incluya este mensaje, y se permita acceso el
18
+ código fuente.
19
+
20
+ Este software es código libre, y se licencia bajo LGPL.
21
+
22
+ Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
+ =end
24
+ %>using System.Windows.Forms;
25
+
26
+ namespace <%=generation_attributes[:namespace]%>
27
+ {
28
+ partial class <%=template_target.class_name%> : Form
29
+ {
30
+ /// <summary>
31
+ /// Required designer variable.
32
+ /// </summary>
33
+ private System.ComponentModel.IContainer components = null;
34
+
35
+ /// <summary>
36
+ /// Clean up any resources being used.
37
+ /// </summary>
38
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
39
+ protected override void Dispose(bool disposing)
40
+ {
41
+ if (disposing && (components != null))
42
+ {
43
+ components.Dispose();
44
+ }
45
+ base.Dispose(disposing);
46
+ }
47
+
48
+ #region Windows Form Designer generated code
49
+
50
+ /// <summary>
51
+ /// Required method for Designer support - do not modify
52
+ /// the contents of this method with the code editor.
53
+ /// </summary>
54
+ private void InitializeComponent()
55
+ {
56
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashForm));
57
+ this.lblTitulo = new System.Windows.Forms.Label();
58
+ this.lblDescripcion = new System.Windows.Forms.Label();
59
+ this.lblCopyright = new System.Windows.Forms.Label();
60
+ this.lblVersion = new System.Windows.Forms.Label();
61
+ this.SuspendLayout();
62
+ //
63
+ // lblTitulo
64
+ //
65
+ this.lblTitulo.BackColor = System.Drawing.Color.Transparent;
66
+ this.lblTitulo.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
67
+ this.lblTitulo.ForeColor = System.Drawing.Color.DarkGray;
68
+ this.lblTitulo.Location = new System.Drawing.Point(12, 52);
69
+ this.lblTitulo.Name = "lblTitulo";
70
+ this.lblTitulo.Size = new System.Drawing.Size(615, 32);
71
+ this.lblTitulo.TabIndex = 0;
72
+ this.lblTitulo.Text = "Titulo";
73
+ this.lblTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
74
+ //
75
+ // lblDescripcion
76
+ //
77
+ this.lblDescripcion.BackColor = System.Drawing.Color.Transparent;
78
+ this.lblDescripcion.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
79
+ this.lblDescripcion.ForeColor = System.Drawing.Color.DarkGray;
80
+ this.lblDescripcion.Location = new System.Drawing.Point(12, 286);
81
+ this.lblDescripcion.Name = "lblDescripcion";
82
+ this.lblDescripcion.Size = new System.Drawing.Size(615, 32);
83
+ this.lblDescripcion.TabIndex = 1;
84
+ this.lblDescripcion.Text = "Descripcion";
85
+ this.lblDescripcion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
86
+ //
87
+ // lblCopyright
88
+ //
89
+ this.lblCopyright.BackColor = System.Drawing.Color.Transparent;
90
+ this.lblCopyright.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
91
+ this.lblCopyright.ForeColor = System.Drawing.Color.White;
92
+ this.lblCopyright.Location = new System.Drawing.Point(12, 322);
93
+ this.lblCopyright.Name = "lblCopyright";
94
+ this.lblCopyright.Size = new System.Drawing.Size(615, 32);
95
+ this.lblCopyright.TabIndex = 1;
96
+ this.lblCopyright.Text = "Copyright";
97
+ this.lblCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
98
+ //
99
+ // lblVersion
100
+ //
101
+ this.lblVersion.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
102
+ this.lblVersion.ForeColor = System.Drawing.Color.DarkGray;
103
+ this.lblVersion.Location = new System.Drawing.Point(515, 352);
104
+ this.lblVersion.Name = "lblVersion";
105
+ this.lblVersion.Size = new System.Drawing.Size(102, 20);
106
+ this.lblVersion.TabIndex = 2;
107
+ this.lblVersion.Text = "1.0.0.0";
108
+ this.lblVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
109
+ //
110
+ // SplashForm
111
+ //
112
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
113
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
114
+ this.BackColor = System.Drawing.Color.Teal;
115
+ this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
116
+ this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
117
+ this.ClientSize = new System.Drawing.Size(629, 381);
118
+ this.Controls.Add(this.lblVersion);
119
+ this.Controls.Add(this.lblCopyright);
120
+ this.Controls.Add(this.lblDescripcion);
121
+ this.Controls.Add(this.lblTitulo);
122
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
123
+ this.Name = "<%=template_target.class_name%>";
124
+ this.ShowIcon = false;
125
+ this.ShowInTaskbar = false;
126
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
127
+ this.Text = "Splash Screen";
128
+ this.TopMost = true;
129
+ this.ResumeLayout(false);
130
+
131
+ }
132
+
133
+ #endregion
134
+
135
+ private System.Windows.Forms.Label lblTitulo;
136
+ private System.Windows.Forms.Label lblDescripcion;
137
+ private System.Windows.Forms.Label lblCopyright;
138
+ private System.Windows.Forms.Label lblVersion;
139
+
140
+ }
141
+ }
@@ -0,0 +1,160 @@
1
+ <%
2
+ #encoding: UTF-8
3
+
4
+ =begin
5
+
6
+ CapicuaGen
7
+
8
+ CapicuaGen es un software que ayuda a la creación automática de
9
+ sistemas empresariales a través de la definición y ensamblado de
10
+ diversos generadores de características.
11
+
12
+ El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
13
+ del 2016.
14
+
15
+ Puede modificar y distribuir este software, según le plazca, y usarlo
16
+ para cualquier fin ya sea comercial, personal, educativo, o de cualquier
17
+ índole, siempre y cuando incluya este mensaje, y se permita acceso el
18
+ código fuente.
19
+
20
+ Este software es código libre, y se licencia bajo LGPL.
21
+
22
+ Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
+ =end
24
+ %>using System;
25
+ using System.Drawing;
26
+ using System.Reflection;
27
+ using System.Windows.Forms;
28
+
29
+ namespace <%=generation_attributes[:namespace]%>
30
+ {
31
+ partial class <%=template_target.class_name%>
32
+ {
33
+ #region Propiedades
34
+
35
+ protected System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
36
+ protected bool fadeIn = true;
37
+ protected bool fadeOut = false;
38
+
39
+ #endregion Propiedades
40
+
41
+ #region Constructor
42
+
43
+ public <%=template_target.class_name%> ()
44
+ {
45
+ InitializeComponent();
46
+ ConfigurarPantalla();
47
+ ComenzasMostrarPantalla();
48
+ }
49
+
50
+ #endregion Constructor
51
+
52
+ #region Metodos
53
+
54
+ protected virtual void ConfigurarPantalla()
55
+ {
56
+ this.lblVersion.Text = this.AssemblyVersion;
57
+ this.lblCopyright.Text = this.AssemblyCopyright;
58
+ this.lblTitulo.Text = this.AssemblyTitle;
59
+ this.lblDescripcion.Text = this.AssemblyDescription;
60
+ }
61
+
62
+ protected virtual void ComenzasMostrarPantalla()
63
+ {
64
+ this.Opacity = 0.5;
65
+ timer.Interval = 60;
66
+ timer.Tick += timer_Tick;
67
+ timer.Start();
68
+ }
69
+
70
+ #endregion Metodos
71
+
72
+ #region Metodos Relativos a la Información del Assembly
73
+
74
+ protected virtual string AssemblyVersion
75
+ {
76
+ get
77
+ {
78
+ return Assembly.GetExecutingAssembly().GetName().Version.ToString();
79
+ }
80
+ }
81
+
82
+ public virtual string AssemblyTitle
83
+ {
84
+ get
85
+ {
86
+ object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
87
+ if (attributes.Length == 0)
88
+ {
89
+ return "";
90
+ }
91
+ return ((AssemblyTitleAttribute)attributes[0]).Title;
92
+ }
93
+ }
94
+
95
+ public virtual string AssemblyDescription
96
+ {
97
+ get
98
+ {
99
+ object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
100
+ if (attributes.Length == 0)
101
+ {
102
+ return "";
103
+ }
104
+ return ((AssemblyDescriptionAttribute)attributes[0]).Description;
105
+ }
106
+ }
107
+
108
+ public virtual string AssemblyCopyright
109
+ {
110
+ get
111
+ {
112
+ object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
113
+ if (attributes.Length == 0)
114
+ {
115
+ return "";
116
+ }
117
+ return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
118
+ }
119
+ }
120
+
121
+ #endregion Metodos Relativos a la Información del Assembly
122
+
123
+ #region Eventos
124
+
125
+ protected virtual void timer_Tick(object sender, EventArgs e)
126
+ {
127
+ if (fadeIn)
128
+ {
129
+ if (this.Opacity < 1.0)
130
+ {
131
+ this.Opacity += 0.02;
132
+ }
133
+ else
134
+ {
135
+ fadeIn = false;
136
+ fadeOut = true;
137
+ }
138
+ }
139
+ else if (fadeOut)
140
+ {
141
+ if (this.Opacity > 0)
142
+ {
143
+ this.Opacity -= 0.02;
144
+ }
145
+ else
146
+ {
147
+ fadeOut = false;
148
+ }
149
+ }
150
+
151
+ if (!(fadeIn || fadeOut))
152
+ {
153
+ timer.Stop();
154
+ this.Close();
155
+ }
156
+ }
157
+
158
+ #endregion Eventos
159
+ }
160
+ }