CapicuaGenGaspar 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/CapicuaGenGaspar.gemspec +60 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +33 -0
- data/LICENSE +165 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/CapicuaGenGaspar/Business/CSSqlEntitityInterface/Source/cs_sql_entity_interface_feature.rb +96 -0
- data/lib/CapicuaGenGaspar/Business/CSSqlEntitityInterface/Template/table_interface.erb +49 -0
- data/lib/CapicuaGenGaspar/Business/CSSqlEntity/Source/cs_sql_entity_feature.rb +103 -0
- data/lib/CapicuaGenGaspar/Business/CSSqlEntity/Template/table_entity.erb +51 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Source/cs_header_footer_feature.rb +148 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Template/footer.erb +37 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Template/header.erb +43 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/EnvDTE.dll +0 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/EnvDTE80.dll +0 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/RunCodeMaidCleaner.exe +0 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/RunCodeMaidCleaner.exe.config +52 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/stdole.dll +0 -0
- data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Source/code_maid_cleaner_feature.rb +162 -0
- data/lib/CapicuaGenGaspar/DataAccess/CSConnectionProvider/Source/cs_db_connection_provider_feature.rb +90 -0
- data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Source/cs_sql_data_access_feature.rb +106 -0
- data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access.erb +154 -0
- data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access_exception.erb +36 -0
- data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access_table.erb +298 -0
- data/lib/CapicuaGenGaspar/Entities/CSEntity/Source/entity_field_schema.rb +100 -0
- data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Source/cs_about_windows_form_feature.rb +85 -0
- data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.designer.erb +211 -0
- data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.erb +127 -0
- data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.resx.erb +535 -0
- data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Source/cs_catalog_windows_form_feature.rb +146 -0
- data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.Designer.erb +363 -0
- data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.erb +320 -0
- data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.resx.erb +2407 -0
- data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogState.erb +51 -0
- data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Source/cs_mdi_windows_form_feature.rb +93 -0
- data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.Designer.erb +316 -0
- data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.erb +161 -0
- data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.resx.erb +2504 -0
- data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MsgboxConsts.erb +31 -0
- data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Source/cs_splash_windows_feature.rb +87 -0
- data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.designer.erb +141 -0
- data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.erb +160 -0
- data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.resx.erb +535 -0
- data/lib/CapicuaGenGaspar/Mixins/about_mixin.rb +55 -0
- data/lib/CapicuaGenGaspar/Mixins/catalog_mixin.rb +65 -0
- data/lib/CapicuaGenGaspar/Mixins/cs_app_config_mixin.rb +41 -0
- data/lib/CapicuaGenGaspar/Mixins/cs_db_connection_provider_mixin.rb +67 -0
- data/lib/CapicuaGenGaspar/Mixins/cs_namespace_mixin.rb +53 -0
- data/lib/CapicuaGenGaspar/Mixins/entity_interface_mixin.rb +57 -0
- data/lib/CapicuaGenGaspar/Mixins/entity_mixin.rb +58 -0
- data/lib/CapicuaGenGaspar/Mixins/entity_sql_table_mixin.rb +58 -0
- data/lib/CapicuaGenGaspar/Mixins/main_form_mixin.rb +55 -0
- data/lib/CapicuaGenGaspar/Mixins/splash_mixin.rb +54 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyect/Source/cs_proyect_feature.rb +140 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Source/cs_proyect_rest_ful_feature.rb +82 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/AssemblyInfo.erb +59 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/ExcepcionControlada.erb +38 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Proyect.erb +114 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Soluction.erb +54 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Web.erb +66 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Source/cs_proyect_windows_form_feature.rb +85 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/App.erb +32 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/AssemblyInfo.erb +59 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/ControlExcepciones.erb +49 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/ExcepcionControlada.erb +40 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Program.erb +46 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Proyect.erb +138 -0
- data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Soluction.erb +55 -0
- data/lib/CapicuaGenGaspar/Tools/message_helper.rb +43 -0
- data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Source/cs_rest_ful_catalog_feature.rb +176 -0
- data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/CatalogState.erb +51 -0
- data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/Catalogs.erb +58 -0
- data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/Catalogs.svc.erb +24 -0
- data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/ICatalogs.erb +58 -0
- data/lib/CapicuaGenGaspar/gaspar.rb +44 -0
- data/lib/CapicuaGenGaspar/version.rb +3 -0
- metadata +216 -0
@@ -0,0 +1,85 @@
|
|
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
|
+
require 'active_support/core_ext/object/blank'
|
23
|
+
|
24
|
+
require_relative '../../../gaspar'
|
25
|
+
|
26
|
+
|
27
|
+
module CapicuaGen::Gaspar
|
28
|
+
|
29
|
+
# Clase generadora de una ventada "Acerca de ..."
|
30
|
+
class CSAboutWindowsFormFeature < CapicuaGen::TemplateFeature
|
31
|
+
include CapicuaGen
|
32
|
+
|
33
|
+
|
34
|
+
public
|
35
|
+
|
36
|
+
# Inicializa la caracteristica
|
37
|
+
def initialize(values= {})
|
38
|
+
super(values)
|
39
|
+
|
40
|
+
# Configuro los tipos si estos no han sido configurados previamente
|
41
|
+
self.types= [:gui, :about_form] if self.types.blank?
|
42
|
+
|
43
|
+
|
44
|
+
# Configuro los templates
|
45
|
+
set_template('aboutForm', Template.new(:file=>'aboutForm.erb'))
|
46
|
+
set_template('aboutForm.designer', Template.new(:file=>'aboutForm.Designer.erb'))
|
47
|
+
set_template('aboutForm.resx', Template.new(:file=>'aboutForm.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('aboutForm', TemplateTarget.new(:out_file=>"#{get_class_name}.cs", :types=>:proyect_file, :class_name=>get_class_name))
|
70
|
+
set_template_target('aboutForm.designer', TemplateTarget.new(:out_file=>"#{get_class_name}.Designer.cs", :types=>:proyect_file, :class_name=>get_class_name))
|
71
|
+
set_template_target('aboutForm.resx', TemplateTarget.new(:out_file=>"#{get_class_name}.resx", :types=>:proyect_file, :class_name=>get_class_name))
|
72
|
+
|
73
|
+
end
|
74
|
+
|
75
|
+
def get_class_name
|
76
|
+
return "AboutForm"
|
77
|
+
end
|
78
|
+
|
79
|
+
def get_class_full_name
|
80
|
+
return "#{self.generation_attributes[:namespace]}.#{get_class_name}"
|
81
|
+
end
|
82
|
+
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,211 @@
|
|
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
|
+
/// Variable del diseñador requerida.
|
32
|
+
/// </summary>
|
33
|
+
private System.ComponentModel.IContainer components = null;
|
34
|
+
|
35
|
+
/// <summary>
|
36
|
+
/// Limpiar los recursos que se estén utilizando.
|
37
|
+
/// </summary>
|
38
|
+
protected override void Dispose(bool disposing)
|
39
|
+
{
|
40
|
+
if (disposing && (components != null))
|
41
|
+
{
|
42
|
+
components.Dispose();
|
43
|
+
}
|
44
|
+
base.Dispose(disposing);
|
45
|
+
}
|
46
|
+
|
47
|
+
#region Código generado por el Diseñador de Windows Forms
|
48
|
+
|
49
|
+
/// <summary>
|
50
|
+
/// Método necesario para admitir el Diseñador. No se puede modificar
|
51
|
+
/// el contenido del método con el editor de código.
|
52
|
+
/// </summary>
|
53
|
+
private void InitializeComponent()
|
54
|
+
{
|
55
|
+
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(<%=template_target.class_name%>));
|
56
|
+
this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
|
57
|
+
this.logoPictureBox = new System.Windows.Forms.PictureBox();
|
58
|
+
this.labelProductName = new System.Windows.Forms.Label();
|
59
|
+
this.labelVersion = new System.Windows.Forms.Label();
|
60
|
+
this.labelCopyright = new System.Windows.Forms.Label();
|
61
|
+
this.labelCompanyName = new System.Windows.Forms.Label();
|
62
|
+
this.textBoxDescription = new System.Windows.Forms.TextBox();
|
63
|
+
this.okButton = new System.Windows.Forms.Button();
|
64
|
+
this.tableLayoutPanel.SuspendLayout();
|
65
|
+
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
|
66
|
+
this.SuspendLayout();
|
67
|
+
//
|
68
|
+
// tableLayoutPanel
|
69
|
+
//
|
70
|
+
this.tableLayoutPanel.ColumnCount = 2;
|
71
|
+
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F));
|
72
|
+
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F));
|
73
|
+
this.tableLayoutPanel.Controls.Add(this.logoPictureBox, 0, 0);
|
74
|
+
this.tableLayoutPanel.Controls.Add(this.labelProductName, 1, 0);
|
75
|
+
this.tableLayoutPanel.Controls.Add(this.labelVersion, 1, 1);
|
76
|
+
this.tableLayoutPanel.Controls.Add(this.labelCopyright, 1, 2);
|
77
|
+
this.tableLayoutPanel.Controls.Add(this.labelCompanyName, 1, 3);
|
78
|
+
this.tableLayoutPanel.Controls.Add(this.textBoxDescription, 1, 4);
|
79
|
+
this.tableLayoutPanel.Controls.Add(this.okButton, 1, 5);
|
80
|
+
this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
81
|
+
this.tableLayoutPanel.Location = new System.Drawing.Point(9, 9);
|
82
|
+
this.tableLayoutPanel.Name = "tableLayoutPanel";
|
83
|
+
this.tableLayoutPanel.RowCount = 6;
|
84
|
+
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
|
85
|
+
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
|
86
|
+
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
|
87
|
+
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
|
88
|
+
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
89
|
+
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
|
90
|
+
this.tableLayoutPanel.Size = new System.Drawing.Size(417, 265);
|
91
|
+
this.tableLayoutPanel.TabIndex = 0;
|
92
|
+
//
|
93
|
+
// logoPictureBox
|
94
|
+
//
|
95
|
+
this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
|
96
|
+
this.logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image")));
|
97
|
+
this.logoPictureBox.Location = new System.Drawing.Point(3, 3);
|
98
|
+
this.logoPictureBox.Name = "logoPictureBox";
|
99
|
+
this.tableLayoutPanel.SetRowSpan(this.logoPictureBox, 6);
|
100
|
+
this.logoPictureBox.Size = new System.Drawing.Size(131, 259);
|
101
|
+
this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
102
|
+
this.logoPictureBox.TabIndex = 12;
|
103
|
+
this.logoPictureBox.TabStop = false;
|
104
|
+
//
|
105
|
+
// labelProductName
|
106
|
+
//
|
107
|
+
this.labelProductName.Dock = System.Windows.Forms.DockStyle.Fill;
|
108
|
+
this.labelProductName.Location = new System.Drawing.Point(143, 0);
|
109
|
+
this.labelProductName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
|
110
|
+
this.labelProductName.MaximumSize = new System.Drawing.Size(0, 17);
|
111
|
+
this.labelProductName.Name = "labelProductName";
|
112
|
+
this.labelProductName.Size = new System.Drawing.Size(271, 17);
|
113
|
+
this.labelProductName.TabIndex = 19;
|
114
|
+
this.labelProductName.Text = "Nombre de producto";
|
115
|
+
this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
116
|
+
//
|
117
|
+
// labelVersion
|
118
|
+
//
|
119
|
+
this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill;
|
120
|
+
this.labelVersion.Location = new System.Drawing.Point(143, 26);
|
121
|
+
this.labelVersion.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
|
122
|
+
this.labelVersion.MaximumSize = new System.Drawing.Size(0, 17);
|
123
|
+
this.labelVersion.Name = "labelVersion";
|
124
|
+
this.labelVersion.Size = new System.Drawing.Size(271, 17);
|
125
|
+
this.labelVersion.TabIndex = 0;
|
126
|
+
this.labelVersion.Text = "Versión";
|
127
|
+
this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
128
|
+
//
|
129
|
+
// labelCopyright
|
130
|
+
//
|
131
|
+
this.labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill;
|
132
|
+
this.labelCopyright.Location = new System.Drawing.Point(143, 52);
|
133
|
+
this.labelCopyright.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
|
134
|
+
this.labelCopyright.MaximumSize = new System.Drawing.Size(0, 17);
|
135
|
+
this.labelCopyright.Name = "labelCopyright";
|
136
|
+
this.labelCopyright.Size = new System.Drawing.Size(271, 17);
|
137
|
+
this.labelCopyright.TabIndex = 21;
|
138
|
+
this.labelCopyright.Text = "Copyright";
|
139
|
+
this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
140
|
+
//
|
141
|
+
// labelCompanyName
|
142
|
+
//
|
143
|
+
this.labelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill;
|
144
|
+
this.labelCompanyName.Location = new System.Drawing.Point(143, 78);
|
145
|
+
this.labelCompanyName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
|
146
|
+
this.labelCompanyName.MaximumSize = new System.Drawing.Size(0, 17);
|
147
|
+
this.labelCompanyName.Name = "labelCompanyName";
|
148
|
+
this.labelCompanyName.Size = new System.Drawing.Size(271, 17);
|
149
|
+
this.labelCompanyName.TabIndex = 22;
|
150
|
+
this.labelCompanyName.Text = "Nombre de la compañía";
|
151
|
+
this.labelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
152
|
+
//
|
153
|
+
// textBoxDescription
|
154
|
+
//
|
155
|
+
this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill;
|
156
|
+
this.textBoxDescription.Location = new System.Drawing.Point(143, 107);
|
157
|
+
this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
|
158
|
+
this.textBoxDescription.Multiline = true;
|
159
|
+
this.textBoxDescription.Name = "textBoxDescription";
|
160
|
+
this.textBoxDescription.ReadOnly = true;
|
161
|
+
this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
162
|
+
this.textBoxDescription.Size = new System.Drawing.Size(271, 126);
|
163
|
+
this.textBoxDescription.TabIndex = 23;
|
164
|
+
this.textBoxDescription.TabStop = false;
|
165
|
+
this.textBoxDescription.Text = "Descripción";
|
166
|
+
//
|
167
|
+
// okButton
|
168
|
+
//
|
169
|
+
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
170
|
+
this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
171
|
+
this.okButton.Location = new System.Drawing.Point(339, 239);
|
172
|
+
this.okButton.Name = "okButton";
|
173
|
+
this.okButton.Size = new System.Drawing.Size(75, 23);
|
174
|
+
this.okButton.TabIndex = 24;
|
175
|
+
this.okButton.Text = "&Aceptar";
|
176
|
+
//
|
177
|
+
// FrmAcercaDe
|
178
|
+
//
|
179
|
+
this.AcceptButton = this.okButton;
|
180
|
+
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
181
|
+
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
182
|
+
this.ClientSize = new System.Drawing.Size(435, 283);
|
183
|
+
this.Controls.Add(this.tableLayoutPanel);
|
184
|
+
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
185
|
+
this.MaximizeBox = false;
|
186
|
+
this.MinimizeBox = false;
|
187
|
+
this.Name = "FrmAcercaDe";
|
188
|
+
this.Padding = new System.Windows.Forms.Padding(9);
|
189
|
+
this.ShowIcon = false;
|
190
|
+
this.ShowInTaskbar = false;
|
191
|
+
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
192
|
+
this.Text = "Acerca de <%#=generador_proyecto.obtener_titulo%>";
|
193
|
+
this.tableLayoutPanel.ResumeLayout(false);
|
194
|
+
this.tableLayoutPanel.PerformLayout();
|
195
|
+
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
|
196
|
+
this.ResumeLayout(false);
|
197
|
+
|
198
|
+
}
|
199
|
+
|
200
|
+
#endregion
|
201
|
+
|
202
|
+
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
|
203
|
+
private System.Windows.Forms.PictureBox logoPictureBox;
|
204
|
+
private System.Windows.Forms.Label labelProductName;
|
205
|
+
private System.Windows.Forms.Label labelVersion;
|
206
|
+
private System.Windows.Forms.Label labelCopyright;
|
207
|
+
private System.Windows.Forms.Label labelCompanyName;
|
208
|
+
private System.Windows.Forms.TextBox textBoxDescription;
|
209
|
+
private System.Windows.Forms.Button okButton;
|
210
|
+
}
|
211
|
+
}
|
@@ -0,0 +1,127 @@
|
|
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.Collections.Generic;
|
26
|
+
using System.ComponentModel;
|
27
|
+
using System.Drawing;
|
28
|
+
using System.Linq;
|
29
|
+
using System.Reflection;
|
30
|
+
using System.Windows.Forms;
|
31
|
+
|
32
|
+
namespace <%=generation_attributes[:namespace]%>
|
33
|
+
{
|
34
|
+
partial class <%=template_target.class_name%>
|
35
|
+
{
|
36
|
+
public <%=template_target.class_name%>()
|
37
|
+
{
|
38
|
+
InitializeComponent();
|
39
|
+
this.Text = String.Format("Acerca de {0}", AssemblyTitle);
|
40
|
+
this.labelProductName.Text = AssemblyProduct;
|
41
|
+
this.labelVersion.Text = String.Format("Versión {0}", AssemblyVersion);
|
42
|
+
this.labelCopyright.Text = AssemblyCopyright;
|
43
|
+
this.labelCompanyName.Text = AssemblyCompany;
|
44
|
+
this.textBoxDescription.Text = AssemblyDescription;
|
45
|
+
}
|
46
|
+
|
47
|
+
#region Descriptores de acceso de atributos de ensamblado
|
48
|
+
|
49
|
+
public virtual string AssemblyTitle
|
50
|
+
{
|
51
|
+
get
|
52
|
+
{
|
53
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
|
54
|
+
if (attributes.Length > 0)
|
55
|
+
{
|
56
|
+
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
|
57
|
+
if (titleAttribute.Title != "")
|
58
|
+
{
|
59
|
+
return titleAttribute.Title;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
public virtual string AssemblyVersion
|
67
|
+
{
|
68
|
+
get
|
69
|
+
{
|
70
|
+
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
public virtual string AssemblyDescription
|
75
|
+
{
|
76
|
+
get
|
77
|
+
{
|
78
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
|
79
|
+
if (attributes.Length == 0)
|
80
|
+
{
|
81
|
+
return "";
|
82
|
+
}
|
83
|
+
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
public virtual string AssemblyProduct
|
88
|
+
{
|
89
|
+
get
|
90
|
+
{
|
91
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
|
92
|
+
if (attributes.Length == 0)
|
93
|
+
{
|
94
|
+
return "";
|
95
|
+
}
|
96
|
+
return ((AssemblyProductAttribute)attributes[0]).Product;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
public virtual string AssemblyCopyright
|
101
|
+
{
|
102
|
+
get
|
103
|
+
{
|
104
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
105
|
+
if (attributes.Length == 0)
|
106
|
+
{
|
107
|
+
return "";
|
108
|
+
}
|
109
|
+
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
public virtual string AssemblyCompany
|
114
|
+
{
|
115
|
+
get
|
116
|
+
{
|
117
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
|
118
|
+
if (attributes.Length == 0)
|
119
|
+
{
|
120
|
+
return "";
|
121
|
+
}
|
122
|
+
return ((AssemblyCompanyAttribute)attributes[0]).Company;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
#endregion
|
126
|
+
}
|
127
|
+
}
|