diff --git a/ServerExplorer/Backup/ServerExplorer.sln b/ServerExplorer/Backup/ServerExplorer.sln new file mode 100644 index 0000000..b20c15f --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerExplorer", "ServerExplorer\ServerExplorer.csproj", "{79531B74-3062-4A71-9953-5702BEBDEC0E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {79531B74-3062-4A71-9953-5702BEBDEC0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {79531B74-3062-4A71-9953-5702BEBDEC0E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {79531B74-3062-4A71-9953-5702BEBDEC0E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {79531B74-3062-4A71-9953-5702BEBDEC0E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ServerExplorer/Backup/ServerExplorer.suo b/ServerExplorer/Backup/ServerExplorer.suo new file mode 100644 index 0000000..991825e Binary files /dev/null and b/ServerExplorer/Backup/ServerExplorer.suo differ diff --git a/ServerExplorer/Backup/ServerExplorer/Program.cs b/ServerExplorer/Backup/ServerExplorer/Program.cs new file mode 100644 index 0000000..56f343c --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace ServerExplorer +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new frmPrincipal()); + } + } +} diff --git a/ServerExplorer/Backup/ServerExplorer/Properties/AssemblyInfo.cs b/ServerExplorer/Backup/ServerExplorer/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..00673fe --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ServerExplorer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("cyc")] +[assembly: AssemblyProduct("ServerExplorer")] +[assembly: AssemblyCopyright("Copyright © cyc 2012")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("31f76805-336c-471c-8af2-a4c1364e97b9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ServerExplorer/Backup/ServerExplorer/Properties/Resources.Designer.cs b/ServerExplorer/Backup/ServerExplorer/Properties/Resources.Designer.cs new file mode 100644 index 0000000..33e5119 --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.3082 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ServerExplorer.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ServerExplorer.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/ServerExplorer/Backup/ServerExplorer/Properties/Resources.resx b/ServerExplorer/Backup/ServerExplorer/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ServerExplorer/Backup/ServerExplorer/Properties/Settings.Designer.cs b/ServerExplorer/Backup/ServerExplorer/Properties/Settings.Designer.cs new file mode 100644 index 0000000..626558f --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.3082 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ServerExplorer.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/ServerExplorer/Backup/ServerExplorer/Properties/Settings.settings b/ServerExplorer/Backup/ServerExplorer/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/ServerExplorer/Backup/ServerExplorer/ServerExplorer.csproj b/ServerExplorer/Backup/ServerExplorer/ServerExplorer.csproj new file mode 100644 index 0000000..f764262 --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/ServerExplorer.csproj @@ -0,0 +1,107 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {79531B74-3062-4A71-9953-5702BEBDEC0E} + WinExe + Properties + ServerExplorer + ServerExplorer + v3.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + Form + + + frmBaseDatos.cs + + + Form + + + frmPrincipal.cs + + + Form + + + frmServidores.cs + + + + + frmBaseDatos.cs + + + frmPrincipal.cs + + + frmServidores.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.Designer.cs b/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.Designer.cs new file mode 100644 index 0000000..339782d --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.Designer.cs @@ -0,0 +1,182 @@ +namespace ServerExplorer +{ + partial class frmBaseDatos + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.txtConString = new System.Windows.Forms.TextBox(); + this.lblConString = new System.Windows.Forms.Label(); + this.btnCopiarConString = new System.Windows.Forms.Button(); + this.lsvTablas = new System.Windows.Forms.ListView(); + this.colNombreTabla = new System.Windows.Forms.ColumnHeader(); + this.colEsquema = new System.Windows.Forms.ColumnHeader(); + this.colTipo = new System.Windows.Forms.ColumnHeader(); + this.lsvColumnas = new System.Windows.Forms.ListView(); + this.colNombreColumna = new System.Windows.Forms.ColumnHeader(); + this.colTipoDatos = new System.Windows.Forms.ColumnHeader(); + this.colTamanho = new System.Windows.Forms.ColumnHeader(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // txtConString + // + this.txtConString.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtConString.Location = new System.Drawing.Point(123, 12); + this.txtConString.Name = "txtConString"; + this.txtConString.ReadOnly = true; + this.txtConString.Size = new System.Drawing.Size(472, 20); + this.txtConString.TabIndex = 0; + // + // lblConString + // + this.lblConString.AutoSize = true; + this.lblConString.Location = new System.Drawing.Point(12, 15); + this.lblConString.Name = "lblConString"; + this.lblConString.Size = new System.Drawing.Size(105, 13); + this.lblConString.TabIndex = 1; + this.lblConString.Text = "Cadena de conexion"; + // + // btnCopiarConString + // + this.btnCopiarConString.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnCopiarConString.Location = new System.Drawing.Point(601, 10); + this.btnCopiarConString.Name = "btnCopiarConString"; + this.btnCopiarConString.Size = new System.Drawing.Size(52, 23); + this.btnCopiarConString.TabIndex = 3; + this.btnCopiarConString.Text = "Copiar"; + this.btnCopiarConString.UseVisualStyleBackColor = true; + this.btnCopiarConString.Click += new System.EventHandler(this.btnCopiarConString_Click); + // + // lsvTablas + // + this.lsvTablas.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.lsvTablas.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.colNombreTabla, + this.colEsquema, + this.colTipo}); + this.lsvTablas.Location = new System.Drawing.Point(12, 38); + this.lsvTablas.Name = "lsvTablas"; + this.lsvTablas.Size = new System.Drawing.Size(326, 426); + this.lsvTablas.TabIndex = 4; + this.lsvTablas.UseCompatibleStateImageBehavior = false; + this.lsvTablas.View = System.Windows.Forms.View.Details; + this.lsvTablas.SelectedIndexChanged += new System.EventHandler(this.lsvTablas_SelectedIndexChanged); + // + // colNombreTabla + // + this.colNombreTabla.Text = "Tabla"; + this.colNombreTabla.Width = 169; + // + // colEsquema + // + this.colEsquema.Text = "Esquema"; + // + // colTipo + // + this.colTipo.Text = "Tipo"; + this.colTipo.Width = 71; + // + // lsvColumnas + // + this.lsvColumnas.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.lsvColumnas.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.colNombreColumna, + this.colTipoDatos, + this.colTamanho}); + this.lsvColumnas.Location = new System.Drawing.Point(344, 38); + this.lsvColumnas.Name = "lsvColumnas"; + this.lsvColumnas.Size = new System.Drawing.Size(309, 262); + this.lsvColumnas.TabIndex = 6; + this.lsvColumnas.UseCompatibleStateImageBehavior = false; + this.lsvColumnas.View = System.Windows.Forms.View.Details; + // + // colNombreColumna + // + this.colNombreColumna.Text = "Columna"; + this.colNombreColumna.Width = 139; + // + // colTipoDatos + // + this.colTipoDatos.Text = "Tipo de Datos"; + this.colTipoDatos.Width = 92; + // + // colTamanho + // + this.colTamanho.Text = "Tamaño"; + // + // dataGridView1 + // + this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Location = new System.Drawing.Point(344, 306); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.Size = new System.Drawing.Size(309, 158); + this.dataGridView1.TabIndex = 8; + // + // frmBaseDatos + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(665, 476); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.lsvColumnas); + this.Controls.Add(this.lsvTablas); + this.Controls.Add(this.btnCopiarConString); + this.Controls.Add(this.lblConString); + this.Controls.Add(this.txtConString); + this.Name = "frmBaseDatos"; + this.Text = "Base de Datos"; + this.Load += new System.EventHandler(this.frmBaseDatos_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox txtConString; + private System.Windows.Forms.Label lblConString; + private System.Windows.Forms.Button btnCopiarConString; + private System.Windows.Forms.ListView lsvTablas; + private System.Windows.Forms.ColumnHeader colNombreTabla; + private System.Windows.Forms.ColumnHeader colEsquema; + private System.Windows.Forms.ColumnHeader colTipo; + private System.Windows.Forms.ListView lsvColumnas; + private System.Windows.Forms.ColumnHeader colNombreColumna; + private System.Windows.Forms.ColumnHeader colTipoDatos; + private System.Windows.Forms.ColumnHeader colTamanho; + private System.Windows.Forms.DataGridView dataGridView1; + } +} \ No newline at end of file diff --git a/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.cs b/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.cs new file mode 100644 index 0000000..6de6eec --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using System.Data.Sql; +using System.Data.SqlClient; + +namespace ServerExplorer +{ + public partial class frmBaseDatos : Form + { + SqlConnection cnx; + + public frmBaseDatos(String ConString) + { + InitializeComponent(); + + // Establecer conexion + txtConString.Text = ConString; + cnx = new SqlConnection(ConString); + } + + private void frmBaseDatos_Load(object sender, EventArgs e) + { + // Obtener lista de tablas + cnx.Open(); + DataTable dt = cnx.GetSchema("Tables"); + cnx.Close(); + + // Mostrar todas las tablas + lsvTablas.Items.Clear(); + foreach (DataRow dr in dt.Rows) + { + ListViewItem item = lsvTablas.Items.Add((String)dr["TABLE_NAME"]); + item.SubItems.Add((String)dr["TABLE_SCHEMA"]); + item.SubItems.Add((String)dr["TABLE_TYPE"]); + } + } + + private void btnCopiarConString_Click(object sender, EventArgs e) + { + // Copiar la cadena de conexion al portapapeles + System.Windows.Forms.Clipboard.SetText(txtConString.Text); + } + + private void lsvTablas_SelectedIndexChanged(object sender, EventArgs e) + { + if (lsvTablas.SelectedItems.Count == 1) + { + DataTable dt; + + // Determinar tabla seleccionada + ListViewItem item = lsvTablas.SelectedItems[0]; + + // Obtener las columnas de la tabla + String[] restr_columna = { null, null, item.SubItems[0].Text, null }; + // NOTA: Catalog, Owner, Table, TableType + cnx.Open(); + dt = cnx.GetSchema("Columns", restr_columna); + cnx.Close(); + + + // Mostrar "columnas" de las tablas + lsvColumnas.Items.Clear(); + foreach (DataRow dr in dt.Rows) + { + ListViewItem subitem = lsvColumnas.Items.Add((String)dr["COLUMN_NAME"]); + subitem.SubItems.Add((String)dr["DATA_TYPE"]); + if (dr["CHARACTER_MAXIMUM_LENGTH"] != DBNull.Value) + { + subitem.SubItems.Add(String.Format("{0}",dr["CHARACTER_MAXIMUM_LENGTH"])); + } + } + + // Obtener las restricciones de la tabla + cnx.Open(); + dt = cnx.GetSchema("Restrictions"); + dt = cnx.GetSchema("ForeignKeys"); + //dt = cnx.GetSchema("Indexes"); + //dt = cnx.GetSchema("IndexColumns"); + //dt = cnx.GetSchema("Constraint"); + cnx.Close(); + + // Mostrar las columnas de la tabla restricciones + dataGridView1.DataSource = dt; + } + } + + } +} diff --git a/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.resx b/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.resx new file mode 100644 index 0000000..19dc0dd --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmBaseDatos.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ServerExplorer/Backup/ServerExplorer/frmPrincipal.Designer.cs b/ServerExplorer/Backup/ServerExplorer/frmPrincipal.Designer.cs new file mode 100644 index 0000000..64dcfcd --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmPrincipal.Designer.cs @@ -0,0 +1,114 @@ +namespace ServerExplorer +{ + partial class frmPrincipal + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.servidorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.meiBuscarServidor = new System.Windows.Forms.ToolStripMenuItem(); + this.baseDeDatosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.meiConectarA = new System.Windows.Forms.ToolStripMenuItem(); + this.meiConectarPRUEBAS = new System.Windows.Forms.ToolStripMenuItem(); + this.menuStrip1.SuspendLayout(); + this.SuspendLayout(); + // + // menuStrip1 + // + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.servidorToolStripMenuItem, + this.baseDeDatosToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(800, 24); + this.menuStrip1.TabIndex = 4; + this.menuStrip1.Text = "menuPrincipal"; + // + // servidorToolStripMenuItem + // + this.servidorToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.meiBuscarServidor}); + this.servidorToolStripMenuItem.Name = "servidorToolStripMenuItem"; + this.servidorToolStripMenuItem.Size = new System.Drawing.Size(59, 20); + this.servidorToolStripMenuItem.Text = "Servidor"; + // + // meiBuscarServidor + // + this.meiBuscarServidor.Name = "meiBuscarServidor"; + this.meiBuscarServidor.Size = new System.Drawing.Size(160, 22); + this.meiBuscarServidor.Text = "Buscar Servidor"; + this.meiBuscarServidor.Click += new System.EventHandler(this.meiBuscarServidor_Click); + // + // baseDeDatosToolStripMenuItem + // + this.baseDeDatosToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.meiConectarA, + this.meiConectarPRUEBAS}); + this.baseDeDatosToolStripMenuItem.Name = "baseDeDatosToolStripMenuItem"; + this.baseDeDatosToolStripMenuItem.Size = new System.Drawing.Size(88, 20); + this.baseDeDatosToolStripMenuItem.Text = "Base de Datos"; + // + // meiConectarA + // + this.meiConectarA.Name = "meiConectarA"; + this.meiConectarA.Size = new System.Drawing.Size(186, 22); + this.meiConectarA.Text = "Conectar a..."; + // + // meiConectarPRUEBAS + // + this.meiConectarPRUEBAS.Name = "meiConectarPRUEBAS"; + this.meiConectarPRUEBAS.Size = new System.Drawing.Size(186, 22); + this.meiConectarPRUEBAS.Text = "Conectar a PRUEBAS"; + this.meiConectarPRUEBAS.Click += new System.EventHandler(this.meiConectarPRUEBAS_Click); + // + // frmPrincipal + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 601); + this.Controls.Add(this.menuStrip1); + this.IsMdiContainer = true; + this.MainMenuStrip = this.menuStrip1; + this.Name = "frmPrincipal"; + this.Text = "Explorador de Servidores"; + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.ToolStripMenuItem servidorToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem meiBuscarServidor; + private System.Windows.Forms.ToolStripMenuItem baseDeDatosToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem meiConectarA; + private System.Windows.Forms.ToolStripMenuItem meiConectarPRUEBAS; + } +} \ No newline at end of file diff --git a/ServerExplorer/Backup/ServerExplorer/frmPrincipal.cs b/ServerExplorer/Backup/ServerExplorer/frmPrincipal.cs new file mode 100644 index 0000000..10c0d72 --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmPrincipal.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace ServerExplorer +{ + public partial class frmPrincipal : Form + { + public frmPrincipal() + { + InitializeComponent(); + } + + private void meiConectarPRUEBAS_Click(object sender, EventArgs e) + { + frmBaseDatos frm = new frmBaseDatos("Data Source=SSSRV3;Initial Catalog=PRUEBAS;User ID=sa;Password=SLsssrv3"); + frm.MdiParent = this; + frm.Show(); + } + + private void meiBuscarServidor_Click(object sender, EventArgs e) + { + frmServidores frm = new frmServidores(); + frm.MdiParent = this; + frm.Show(); + } + } +} diff --git a/ServerExplorer/Backup/ServerExplorer/frmPrincipal.resx b/ServerExplorer/Backup/ServerExplorer/frmPrincipal.resx new file mode 100644 index 0000000..541af56 --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmPrincipal.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/ServerExplorer/Backup/ServerExplorer/frmServidores.Designer.cs b/ServerExplorer/Backup/ServerExplorer/frmServidores.Designer.cs new file mode 100644 index 0000000..87d487e --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmServidores.Designer.cs @@ -0,0 +1,216 @@ +namespace ServerExplorer +{ + partial class frmServidores + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.lsvServidores = new System.Windows.Forms.ListView(); + this.btnListarServidores = new System.Windows.Forms.Button(); + this.colNombreServidor = new System.Windows.Forms.ColumnHeader(); + this.colInstancia = new System.Windows.Forms.ColumnHeader(); + this.colVersion = new System.Windows.Forms.ColumnHeader(); + this.lblServidor = new System.Windows.Forms.Label(); + this.txtServidor = new System.Windows.Forms.TextBox(); + this.lblUsuario = new System.Windows.Forms.Label(); + this.lblContrasenha = new System.Windows.Forms.Label(); + this.txtUsuario = new System.Windows.Forms.TextBox(); + this.TxtContrasenha = new System.Windows.Forms.TextBox(); + this.btnListarBBDD = new System.Windows.Forms.Button(); + this.lsvBBDD = new System.Windows.Forms.ListView(); + this.colDBName = new System.Windows.Forms.ColumnHeader(); + this.colFechaCreacion = new System.Windows.Forms.ColumnHeader(); + this.SuspendLayout(); + // + // lsvServidores + // + this.lsvServidores.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.lsvServidores.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.colNombreServidor, + this.colInstancia, + this.colVersion}); + this.lsvServidores.Location = new System.Drawing.Point(12, 42); + this.lsvServidores.Name = "lsvServidores"; + this.lsvServidores.Size = new System.Drawing.Size(281, 391); + this.lsvServidores.TabIndex = 1; + this.lsvServidores.UseCompatibleStateImageBehavior = false; + this.lsvServidores.View = System.Windows.Forms.View.Details; + this.lsvServidores.SelectedIndexChanged += new System.EventHandler(this.lsvServidores_SelectedIndexChanged); + // + // btnListarServidores + // + this.btnListarServidores.Location = new System.Drawing.Point(12, 13); + this.btnListarServidores.Name = "btnListarServidores"; + this.btnListarServidores.Size = new System.Drawing.Size(281, 23); + this.btnListarServidores.TabIndex = 2; + this.btnListarServidores.Text = "Listar Servidores"; + this.btnListarServidores.UseVisualStyleBackColor = true; + this.btnListarServidores.Click += new System.EventHandler(this.btnListarServidores_Click); + // + // colNombreServidor + // + this.colNombreServidor.Text = "Servidor"; + this.colNombreServidor.Width = 110; + // + // colInstancia + // + this.colInstancia.Text = "Instancia"; + this.colInstancia.Width = 94; + // + // colVersion + // + this.colVersion.Text = "Version"; + this.colVersion.Width = 73; + // + // lblServidor + // + this.lblServidor.AutoSize = true; + this.lblServidor.Location = new System.Drawing.Point(319, 18); + this.lblServidor.Name = "lblServidor"; + this.lblServidor.Size = new System.Drawing.Size(46, 13); + this.lblServidor.TabIndex = 3; + this.lblServidor.Text = "Servidor"; + // + // txtServidor + // + this.txtServidor.Location = new System.Drawing.Point(429, 15); + this.txtServidor.Name = "txtServidor"; + this.txtServidor.Size = new System.Drawing.Size(180, 20); + this.txtServidor.TabIndex = 4; + // + // lblUsuario + // + this.lblUsuario.AutoSize = true; + this.lblUsuario.Location = new System.Drawing.Point(319, 45); + this.lblUsuario.Name = "lblUsuario"; + this.lblUsuario.Size = new System.Drawing.Size(43, 13); + this.lblUsuario.TabIndex = 5; + this.lblUsuario.Text = "Usuario"; + // + // lblContrasenha + // + this.lblContrasenha.AutoSize = true; + this.lblContrasenha.Location = new System.Drawing.Point(319, 70); + this.lblContrasenha.Name = "lblContrasenha"; + this.lblContrasenha.Size = new System.Drawing.Size(61, 13); + this.lblContrasenha.TabIndex = 6; + this.lblContrasenha.Text = "Contraseña"; + // + // txtUsuario + // + this.txtUsuario.Location = new System.Drawing.Point(429, 42); + this.txtUsuario.Name = "txtUsuario"; + this.txtUsuario.Size = new System.Drawing.Size(180, 20); + this.txtUsuario.TabIndex = 7; + // + // TxtContrasenha + // + this.TxtContrasenha.Location = new System.Drawing.Point(429, 67); + this.TxtContrasenha.Name = "TxtContrasenha"; + this.TxtContrasenha.Size = new System.Drawing.Size(180, 20); + this.TxtContrasenha.TabIndex = 8; + this.TxtContrasenha.UseSystemPasswordChar = true; + // + // btnListarBBDD + // + this.btnListarBBDD.Location = new System.Drawing.Point(322, 93); + this.btnListarBBDD.Name = "btnListarBBDD"; + this.btnListarBBDD.Size = new System.Drawing.Size(287, 23); + this.btnListarBBDD.TabIndex = 9; + this.btnListarBBDD.Text = "Listar BBDD"; + this.btnListarBBDD.UseVisualStyleBackColor = true; + this.btnListarBBDD.Click += new System.EventHandler(this.btnListarBBDD_Click); + // + // lsvBBDD + // + this.lsvBBDD.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.lsvBBDD.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.colDBName, + this.colFechaCreacion}); + this.lsvBBDD.Location = new System.Drawing.Point(322, 122); + this.lsvBBDD.Name = "lsvBBDD"; + this.lsvBBDD.Size = new System.Drawing.Size(287, 311); + this.lsvBBDD.TabIndex = 11; + this.lsvBBDD.UseCompatibleStateImageBehavior = false; + this.lsvBBDD.View = System.Windows.Forms.View.Details; + this.lsvBBDD.DoubleClick += new System.EventHandler(this.lsvBBDD_DoubleClick); + // + // colDBName + // + this.colDBName.Text = "Base de Datos"; + this.colDBName.Width = 165; + // + // colFechaCreacion + // + this.colFechaCreacion.Text = "Fecha de Creacion"; + this.colFechaCreacion.Width = 107; + // + // frmServidores + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(631, 445); + this.Controls.Add(this.lsvBBDD); + this.Controls.Add(this.btnListarBBDD); + this.Controls.Add(this.TxtContrasenha); + this.Controls.Add(this.txtUsuario); + this.Controls.Add(this.lblContrasenha); + this.Controls.Add(this.lblUsuario); + this.Controls.Add(this.txtServidor); + this.Controls.Add(this.lblServidor); + this.Controls.Add(this.btnListarServidores); + this.Controls.Add(this.lsvServidores); + this.Name = "frmServidores"; + this.Text = "Servidores"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ListView lsvServidores; + private System.Windows.Forms.Button btnListarServidores; + private System.Windows.Forms.ColumnHeader colNombreServidor; + private System.Windows.Forms.ColumnHeader colInstancia; + private System.Windows.Forms.ColumnHeader colVersion; + private System.Windows.Forms.Label lblServidor; + private System.Windows.Forms.TextBox txtServidor; + private System.Windows.Forms.Label lblUsuario; + private System.Windows.Forms.Label lblContrasenha; + private System.Windows.Forms.TextBox txtUsuario; + private System.Windows.Forms.TextBox TxtContrasenha; + private System.Windows.Forms.Button btnListarBBDD; + private System.Windows.Forms.ListView lsvBBDD; + private System.Windows.Forms.ColumnHeader colDBName; + private System.Windows.Forms.ColumnHeader colFechaCreacion; + + } +} + diff --git a/ServerExplorer/Backup/ServerExplorer/frmServidores.cs b/ServerExplorer/Backup/ServerExplorer/frmServidores.cs new file mode 100644 index 0000000..a9e8493 --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmServidores.cs @@ -0,0 +1,121 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using System.Data.Sql; +using System.Data.SqlClient; +using System.Data.SqlTypes; + +namespace ServerExplorer +{ + public partial class frmServidores : Form + { + public frmServidores() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + } + + private void btnListarServidores_Click(object sender, EventArgs e) + { + // Obtener listado de servidores + SqlDataSourceEnumerator enumerador = SqlDataSourceEnumerator.Instance; + DataTable servidores = enumerador.GetDataSources(); + lsvServidores.Items.Clear(); + lsvBBDD.Items.Clear(); + foreach (DataRow dr in servidores.Rows) + { + // Nombre del servidor + ListViewItem item = lsvServidores.Items.Add((String)dr["ServerName"]); + + // Nombre de la instancia + if (dr["InstanceName"] == System.DBNull.Value) + { + item.SubItems.Add(""); + } + else + { + item.SubItems.Add((String)dr["InstanceName"]); + } + + // Numero de version + if (dr["Version"] == System.DBNull.Value) + { + item.SubItems.Add("???"); + } + else + { + item.SubItems.Add((String)dr["Version"]); + } + } + } + + private void lsvServidores_SelectedIndexChanged(object sender, EventArgs e) + { + if (lsvServidores.SelectedItems.Count > 0) + { + ListViewItem item = lsvServidores.SelectedItems[0]; + if (item.SubItems[1].Text.CompareTo("")==0) + { + // Servidor sin subinstancias + txtServidor.Text = item.SubItems[0].Text; + } + else + { + // Servidor con subinstancias + txtServidor.Text = item.SubItems[0].Text+"/"+item.SubItems[1].Text; + } + } + } + + private void btnListarBBDD_Click(object sender, EventArgs e) + { + // Construir cadena de conexion + SqlConnectionStringBuilder constructor = new SqlConnectionStringBuilder(); + constructor.DataSource = txtServidor.Text; + constructor.InitialCatalog = "master"; + constructor.UserID = txtUsuario.Text; + constructor.Password = TxtContrasenha.Text; + + // Obtener todas las bases de datos + SqlConnection cnx = new SqlConnection(constructor.ConnectionString); + cnx.Open(); + DataTable dt = cnx.GetSchema("Databases"); + cnx.Close(); + + + // Mostrar bases de datos + lsvBBDD.Items.Clear(); + foreach (DataRow dr in dt.Rows) + { + ListViewItem item = lsvBBDD.Items.Add((String)dr["database_name"]); + item.SubItems.Add(((DateTime)dr["create_date"]).ToShortDateString()); + } + } + + + private void lsvBBDD_DoubleClick(object sender, EventArgs e) + { + if (lsvBBDD.SelectedItems.Count == 1) + { + // Construir cadena de conexion final + SqlConnectionStringBuilder constructor = new SqlConnectionStringBuilder(); + constructor.DataSource = txtServidor.Text; + constructor.InitialCatalog = (String)lsvBBDD.SelectedItems[0].SubItems[0].Text; + constructor.UserID = txtUsuario.Text; + constructor.Password = TxtContrasenha.Text; + + // Llamar a la venta de la base de datos + frmBaseDatos frm = new frmBaseDatos(constructor.ConnectionString); + frm.Show(); + } + } + } +} diff --git a/ServerExplorer/Backup/ServerExplorer/frmServidores.resx b/ServerExplorer/Backup/ServerExplorer/frmServidores.resx new file mode 100644 index 0000000..19dc0dd --- /dev/null +++ b/ServerExplorer/Backup/ServerExplorer/frmServidores.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ServerExplorer/ServerExplorer.sln b/ServerExplorer/ServerExplorer.sln index b20c15f..03d0003 100644 --- a/ServerExplorer/ServerExplorer.sln +++ b/ServerExplorer/ServerExplorer.sln @@ -1,6 +1,6 @@  -Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual Studio 2008 +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerExplorer", "ServerExplorer\ServerExplorer.csproj", "{79531B74-3062-4A71-9953-5702BEBDEC0E}" EndProject Global diff --git a/ServerExplorer/ServerExplorer.suo b/ServerExplorer/ServerExplorer.suo index c2c346d..6e1f1fa 100644 Binary files a/ServerExplorer/ServerExplorer.suo and b/ServerExplorer/ServerExplorer.suo differ diff --git a/ServerExplorer/ServerExplorer/CodeGenConfig.cs b/ServerExplorer/ServerExplorer/CodeGenConfig.cs new file mode 100644 index 0000000..d873388 --- /dev/null +++ b/ServerExplorer/ServerExplorer/CodeGenConfig.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Xml.Serialization; +using System.IO; + +namespace ServerExplorer +{ + public class CodeGenConfig + { + public String ConString = ""; + public String PathRaiz=""; + public String PathDAL=""; + public String PathDTO=""; + public String PathExtra=""; + + public List tablas=new List(); + + public void Guardar(String fichero){ + XmlSerializer seriador = new XmlSerializer(typeof(CodeGenConfig)); + StreamWriter escritor = new StreamWriter(fichero); + seriador.Serialize(escritor, this); + } + + public static CodeGenConfig Cargar(String fichero) + { + XmlSerializer seriador = new XmlSerializer(typeof(CodeGenConfig)); + StreamReader lector = new StreamReader(fichero); + CodeGenConfig config=(CodeGenConfig)seriador.Deserialize(lector); + return config; + } + } +} diff --git a/ServerExplorer/ServerExplorer/Properties/Resources.Designer.cs b/ServerExplorer/ServerExplorer/Properties/Resources.Designer.cs index 33e5119..693042d 100644 --- a/ServerExplorer/ServerExplorer/Properties/Resources.Designer.cs +++ b/ServerExplorer/ServerExplorer/Properties/Resources.Designer.cs @@ -1,69 +1,61 @@ //------------------------------------------------------------------------------ // -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 +// Este código fue generado por una herramienta. +// Versión de runtime:4.0.30319.488 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si +// se vuelve a generar el código. // //------------------------------------------------------------------------------ -namespace ServerExplorer.Properties -{ - - +namespace ServerExplorer.Properties { + using System; + + /// - /// A strongly-typed resource class, for looking up localized strings, etc. + /// Clase de recurso con establecimiento inflexible de tipos, para buscar cadenas traducidas, etc. /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + // StronglyTypedResourceBuilder generó automáticamente esta clase + // a través de una herramienta como ResGen o Visual Studio. + // Para agregar o quitar un miembro, edite el archivo .ResX y, a continuación, vuelva a ejecutar ResGen + // con la opción /str o vuelva a generar su proyecto de VS. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - + internal class Resources { + private static global::System.Resources.ResourceManager resourceMan; - + private static global::System.Globalization.CultureInfo resourceCulture; - + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { + internal Resources() { } - + /// - /// Returns the cached ResourceManager instance used by this class. + /// Devuelve la instancia de ResourceManager almacenada en caché utilizada por esta clase. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ServerExplorer.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } - + /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. + /// Reemplaza la propiedad CurrentUICulture del subproceso actual para todas las + /// búsquedas de recursos mediante esta clase de recurso con establecimiento inflexible de tipos. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { + internal static global::System.Globalization.CultureInfo Culture { + get { return resourceCulture; } - set - { + set { resourceCulture = value; } } diff --git a/ServerExplorer/ServerExplorer/Properties/Settings.Designer.cs b/ServerExplorer/ServerExplorer/Properties/Settings.Designer.cs index 626558f..cd03d92 100644 --- a/ServerExplorer/ServerExplorer/Properties/Settings.Designer.cs +++ b/ServerExplorer/ServerExplorer/Properties/Settings.Designer.cs @@ -1,28 +1,24 @@ //------------------------------------------------------------------------------ // -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 +// Este código fue generado por una herramienta. +// Versión de runtime:4.0.30319.488 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si +// se vuelve a generar el código. // //------------------------------------------------------------------------------ -namespace ServerExplorer.Properties -{ - - +namespace ServerExplorer.Properties { + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { + + public static Settings Default { + get { return defaultInstance; } } diff --git a/ServerExplorer/ServerExplorer/ServerExplorer.csproj b/ServerExplorer/ServerExplorer/ServerExplorer.csproj index f764262..5680ffc 100644 --- a/ServerExplorer/ServerExplorer/ServerExplorer.csproj +++ b/ServerExplorer/ServerExplorer/ServerExplorer.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -12,6 +12,26 @@ ServerExplorer v3.5 512 + + + + + 3.5 + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true true @@ -48,12 +68,19 @@ + Form frmBaseDatos.cs + + Form + + + frmCodeGenConfig.cs + Form @@ -71,6 +98,9 @@ frmBaseDatos.cs + + frmCodeGenConfig.cs + frmPrincipal.cs @@ -85,6 +115,7 @@ True Resources.resx + True SettingsSingleFileGenerator @@ -96,6 +127,23 @@ True + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + true + + + False + Windows Installer 3.1 + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ServerExplorer/ServerExplorer/frmPrincipal.Designer.cs b/ServerExplorer/ServerExplorer/frmPrincipal.Designer.cs index 64dcfcd..79ae729 100644 --- a/ServerExplorer/ServerExplorer/frmPrincipal.Designer.cs +++ b/ServerExplorer/ServerExplorer/frmPrincipal.Designer.cs @@ -28,75 +28,76 @@ /// private void InitializeComponent() { - this.menuStrip1 = new System.Windows.Forms.MenuStrip(); - this.servidorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.meiBuscarServidor = new System.Windows.Forms.ToolStripMenuItem(); - this.baseDeDatosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.meiConectarA = new System.Windows.Forms.ToolStripMenuItem(); - this.meiConectarPRUEBAS = new System.Windows.Forms.ToolStripMenuItem(); - this.menuStrip1.SuspendLayout(); + this.menuPrincipal = new System.Windows.Forms.MenuStrip(); + this.menuServidor = new System.Windows.Forms.ToolStripMenuItem(); + this.menuBuscarServidor = new System.Windows.Forms.ToolStripMenuItem(); + this.menuBaseDatos = new System.Windows.Forms.ToolStripMenuItem(); + this.menuConectarA = new System.Windows.Forms.ToolStripMenuItem(); + this.menuConectarPRUEBAS = new System.Windows.Forms.ToolStripMenuItem(); + this.menuPrincipal.SuspendLayout(); this.SuspendLayout(); // - // menuStrip1 + // menuPrincipal // - this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.servidorToolStripMenuItem, - this.baseDeDatosToolStripMenuItem}); - this.menuStrip1.Location = new System.Drawing.Point(0, 0); - this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Size = new System.Drawing.Size(800, 24); - this.menuStrip1.TabIndex = 4; - this.menuStrip1.Text = "menuPrincipal"; + this.menuPrincipal.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.menuServidor, + this.menuBaseDatos}); + this.menuPrincipal.Location = new System.Drawing.Point(0, 0); + this.menuPrincipal.Name = "menuPrincipal"; + this.menuPrincipal.Size = new System.Drawing.Size(800, 24); + this.menuPrincipal.TabIndex = 4; + this.menuPrincipal.Text = "menuPrincipal"; // - // servidorToolStripMenuItem + // menuServidor // - this.servidorToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.meiBuscarServidor}); - this.servidorToolStripMenuItem.Name = "servidorToolStripMenuItem"; - this.servidorToolStripMenuItem.Size = new System.Drawing.Size(59, 20); - this.servidorToolStripMenuItem.Text = "Servidor"; + this.menuServidor.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.menuBuscarServidor}); + this.menuServidor.Name = "menuServidor"; + this.menuServidor.Size = new System.Drawing.Size(62, 20); + this.menuServidor.Text = "Servidor"; // - // meiBuscarServidor + // menuBuscarServidor // - this.meiBuscarServidor.Name = "meiBuscarServidor"; - this.meiBuscarServidor.Size = new System.Drawing.Size(160, 22); - this.meiBuscarServidor.Text = "Buscar Servidor"; - this.meiBuscarServidor.Click += new System.EventHandler(this.meiBuscarServidor_Click); + this.menuBuscarServidor.Name = "menuBuscarServidor"; + this.menuBuscarServidor.Size = new System.Drawing.Size(155, 22); + this.menuBuscarServidor.Text = "Buscar Servidor"; + this.menuBuscarServidor.Click += new System.EventHandler(this.menuBuscarServidor_Click); // - // baseDeDatosToolStripMenuItem + // menuBaseDatos // - this.baseDeDatosToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.meiConectarA, - this.meiConectarPRUEBAS}); - this.baseDeDatosToolStripMenuItem.Name = "baseDeDatosToolStripMenuItem"; - this.baseDeDatosToolStripMenuItem.Size = new System.Drawing.Size(88, 20); - this.baseDeDatosToolStripMenuItem.Text = "Base de Datos"; + this.menuBaseDatos.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.menuConectarA, + this.menuConectarPRUEBAS}); + this.menuBaseDatos.Name = "menuBaseDatos"; + this.menuBaseDatos.Size = new System.Drawing.Size(92, 20); + this.menuBaseDatos.Text = "Base de Datos"; // - // meiConectarA + // menuConectarA // - this.meiConectarA.Name = "meiConectarA"; - this.meiConectarA.Size = new System.Drawing.Size(186, 22); - this.meiConectarA.Text = "Conectar a..."; + this.menuConectarA.Name = "menuConectarA"; + this.menuConectarA.Size = new System.Drawing.Size(183, 22); + this.menuConectarA.Text = "Conectar a..."; + this.menuConectarA.Click += new System.EventHandler(this.menuConectarA_Click); // - // meiConectarPRUEBAS + // menuConectarPRUEBAS // - this.meiConectarPRUEBAS.Name = "meiConectarPRUEBAS"; - this.meiConectarPRUEBAS.Size = new System.Drawing.Size(186, 22); - this.meiConectarPRUEBAS.Text = "Conectar a PRUEBAS"; - this.meiConectarPRUEBAS.Click += new System.EventHandler(this.meiConectarPRUEBAS_Click); + this.menuConectarPRUEBAS.Name = "menuConectarPRUEBAS"; + this.menuConectarPRUEBAS.Size = new System.Drawing.Size(183, 22); + this.menuConectarPRUEBAS.Text = "Conectar a PRUEBAS"; + this.menuConectarPRUEBAS.Click += new System.EventHandler(this.menuConectarPRUEBAS_Click); // // frmPrincipal // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 601); - this.Controls.Add(this.menuStrip1); + this.Controls.Add(this.menuPrincipal); this.IsMdiContainer = true; - this.MainMenuStrip = this.menuStrip1; + this.MainMenuStrip = this.menuPrincipal; this.Name = "frmPrincipal"; this.Text = "Explorador de Servidores"; - this.menuStrip1.ResumeLayout(false); - this.menuStrip1.PerformLayout(); + this.menuPrincipal.ResumeLayout(false); + this.menuPrincipal.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -104,11 +105,11 @@ #endregion - private System.Windows.Forms.MenuStrip menuStrip1; - private System.Windows.Forms.ToolStripMenuItem servidorToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem meiBuscarServidor; - private System.Windows.Forms.ToolStripMenuItem baseDeDatosToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem meiConectarA; - private System.Windows.Forms.ToolStripMenuItem meiConectarPRUEBAS; + private System.Windows.Forms.MenuStrip menuPrincipal; + private System.Windows.Forms.ToolStripMenuItem menuServidor; + private System.Windows.Forms.ToolStripMenuItem menuBuscarServidor; + private System.Windows.Forms.ToolStripMenuItem menuBaseDatos; + private System.Windows.Forms.ToolStripMenuItem menuConectarA; + private System.Windows.Forms.ToolStripMenuItem menuConectarPRUEBAS; } } \ No newline at end of file diff --git a/ServerExplorer/ServerExplorer/frmPrincipal.cs b/ServerExplorer/ServerExplorer/frmPrincipal.cs index 10c0d72..4c69926 100644 --- a/ServerExplorer/ServerExplorer/frmPrincipal.cs +++ b/ServerExplorer/ServerExplorer/frmPrincipal.cs @@ -16,18 +16,38 @@ namespace ServerExplorer InitializeComponent(); } - private void meiConectarPRUEBAS_Click(object sender, EventArgs e) + private void menuConectarPRUEBAS_Click(object sender, EventArgs e) { - frmBaseDatos frm = new frmBaseDatos("Data Source=SSSRV3;Initial Catalog=PRUEBAS;User ID=sa;Password=SLsssrv3"); + // Crear ventana de la base de datos de pruebas + //frmBaseDatos frm = new frmBaseDatos("Data Source=SSSRV3;Initial Catalog=PRUEBAS;User ID=sa;Password=SLsssrv3"); + frmBaseDatos frm = new frmBaseDatos("Data Source=DANTE;Initial Catalog=BD_AlfonsoRodriguez;Integrated Security=True"); frm.MdiParent = this; + frm.WindowState = FormWindowState.Maximized; frm.Show(); } - private void meiBuscarServidor_Click(object sender, EventArgs e) + private void menuBuscarServidor_Click(object sender, EventArgs e) { + // Mostrar ventana de buscador de servidores frmServidores frm = new frmServidores(); frm.MdiParent = this; frm.Show(); } + + private void menuConectarA_Click(object sender, EventArgs e) + { + // Cargar configuracion + OpenFileDialog dialogo = new OpenFileDialog(); + if (dialogo.ShowDialog() == DialogResult.OK) + { + CodeGenConfig config = CodeGenConfig.Cargar(dialogo.FileName); + + // Crear y mostrar ventana + frmBaseDatos frm = new frmBaseDatos(config); + frm.MdiParent = this; + frm.WindowState = FormWindowState.Maximized; + frm.Show(); + } + } } } diff --git a/ServerExplorer/ServerExplorer/frmPrincipal.resx b/ServerExplorer/ServerExplorer/frmPrincipal.resx index 541af56..5c01ad7 100644 --- a/ServerExplorer/ServerExplorer/frmPrincipal.resx +++ b/ServerExplorer/ServerExplorer/frmPrincipal.resx @@ -117,7 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + 17, 17 \ No newline at end of file diff --git a/ServerExplorer/ServerExplorer/frmServidores.Designer.cs b/ServerExplorer/ServerExplorer/frmServidores.Designer.cs index 87d487e..d14acfd 100644 --- a/ServerExplorer/ServerExplorer/frmServidores.Designer.cs +++ b/ServerExplorer/ServerExplorer/frmServidores.Designer.cs @@ -29,10 +29,10 @@ private void InitializeComponent() { this.lsvServidores = new System.Windows.Forms.ListView(); + this.colNombreServidor = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.colInstancia = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.colVersion = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.btnListarServidores = new System.Windows.Forms.Button(); - this.colNombreServidor = new System.Windows.Forms.ColumnHeader(); - this.colInstancia = new System.Windows.Forms.ColumnHeader(); - this.colVersion = new System.Windows.Forms.ColumnHeader(); this.lblServidor = new System.Windows.Forms.Label(); this.txtServidor = new System.Windows.Forms.TextBox(); this.lblUsuario = new System.Windows.Forms.Label(); @@ -41,18 +41,19 @@ this.TxtContrasenha = new System.Windows.Forms.TextBox(); this.btnListarBBDD = new System.Windows.Forms.Button(); this.lsvBBDD = new System.Windows.Forms.ListView(); - this.colDBName = new System.Windows.Forms.ColumnHeader(); - this.colFechaCreacion = new System.Windows.Forms.ColumnHeader(); + this.colDBName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.colFechaCreacion = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.SuspendLayout(); // // lsvServidores // - this.lsvServidores.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); + this.lsvServidores.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); this.lsvServidores.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colNombreServidor, this.colInstancia, this.colVersion}); + this.lsvServidores.FullRowSelect = true; this.lsvServidores.Location = new System.Drawing.Point(12, 42); this.lsvServidores.Name = "lsvServidores"; this.lsvServidores.Size = new System.Drawing.Size(281, 391); @@ -61,16 +62,6 @@ this.lsvServidores.View = System.Windows.Forms.View.Details; this.lsvServidores.SelectedIndexChanged += new System.EventHandler(this.lsvServidores_SelectedIndexChanged); // - // btnListarServidores - // - this.btnListarServidores.Location = new System.Drawing.Point(12, 13); - this.btnListarServidores.Name = "btnListarServidores"; - this.btnListarServidores.Size = new System.Drawing.Size(281, 23); - this.btnListarServidores.TabIndex = 2; - this.btnListarServidores.Text = "Listar Servidores"; - this.btnListarServidores.UseVisualStyleBackColor = true; - this.btnListarServidores.Click += new System.EventHandler(this.btnListarServidores_Click); - // // colNombreServidor // this.colNombreServidor.Text = "Servidor"; @@ -86,6 +77,16 @@ this.colVersion.Text = "Version"; this.colVersion.Width = 73; // + // btnListarServidores + // + this.btnListarServidores.Location = new System.Drawing.Point(12, 13); + this.btnListarServidores.Name = "btnListarServidores"; + this.btnListarServidores.Size = new System.Drawing.Size(281, 23); + this.btnListarServidores.TabIndex = 2; + this.btnListarServidores.Text = "Listar Servidores"; + this.btnListarServidores.UseVisualStyleBackColor = true; + this.btnListarServidores.Click += new System.EventHandler(this.btnListarServidores_Click); + // // lblServidor // this.lblServidor.AutoSize = true; @@ -147,11 +148,12 @@ // // lsvBBDD // - this.lsvBBDD.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); + this.lsvBBDD.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); this.lsvBBDD.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colDBName, this.colFechaCreacion}); + this.lsvBBDD.FullRowSelect = true; this.lsvBBDD.Location = new System.Drawing.Point(322, 122); this.lsvBBDD.Name = "lsvBBDD"; this.lsvBBDD.Size = new System.Drawing.Size(287, 311); diff --git a/ServerExplorer/ServerExplorer/frmServidores.cs b/ServerExplorer/ServerExplorer/frmServidores.cs index a9e8493..f4a9035 100644 --- a/ServerExplorer/ServerExplorer/frmServidores.cs +++ b/ServerExplorer/ServerExplorer/frmServidores.cs @@ -81,8 +81,15 @@ namespace ServerExplorer SqlConnectionStringBuilder constructor = new SqlConnectionStringBuilder(); constructor.DataSource = txtServidor.Text; constructor.InitialCatalog = "master"; - constructor.UserID = txtUsuario.Text; - constructor.Password = TxtContrasenha.Text; + if (txtUsuario.Text.CompareTo("") == 0) + { + constructor.IntegratedSecurity = true; + } + else + { + constructor.UserID = txtUsuario.Text; + constructor.Password = TxtContrasenha.Text; + } // Obtener todas las bases de datos SqlConnection cnx = new SqlConnection(constructor.ConnectionString); @@ -109,11 +116,19 @@ namespace ServerExplorer SqlConnectionStringBuilder constructor = new SqlConnectionStringBuilder(); constructor.DataSource = txtServidor.Text; constructor.InitialCatalog = (String)lsvBBDD.SelectedItems[0].SubItems[0].Text; - constructor.UserID = txtUsuario.Text; - constructor.Password = TxtContrasenha.Text; + if (txtUsuario.Text.CompareTo("") == 0) + { + constructor.IntegratedSecurity = true; + } + else + { + constructor.UserID = txtUsuario.Text; + constructor.Password = TxtContrasenha.Text; + } // Llamar a la venta de la base de datos frmBaseDatos frm = new frmBaseDatos(constructor.ConnectionString); + frm.MdiParent = this.MdiParent; frm.Show(); } } diff --git a/ServerExplorer/ServerExplorer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ServerExplorer/ServerExplorer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..a7a358c Binary files /dev/null and b/ServerExplorer/ServerExplorer/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ServerExplorer/ServerExplorer/obj/Debug/ResGen.read.1.tlog b/ServerExplorer/ServerExplorer/obj/Debug/ResGen.read.1.tlog new file mode 100644 index 0000000..5fdcbd3 Binary files /dev/null and b/ServerExplorer/ServerExplorer/obj/Debug/ResGen.read.1.tlog differ diff --git a/ServerExplorer/ServerExplorer/obj/Debug/ResGen.write.1.tlog b/ServerExplorer/ServerExplorer/obj/Debug/ResGen.write.1.tlog new file mode 100644 index 0000000..d1fec80 Binary files /dev/null and b/ServerExplorer/ServerExplorer/obj/Debug/ResGen.write.1.tlog differ diff --git a/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.csproj.FileListAbsolute.txt b/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.csproj.FileListAbsolute.txt index 842fea0..d25bfac 100644 --- a/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.csproj.FileListAbsolute.txt +++ b/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.csproj.FileListAbsolute.txt @@ -8,3 +8,15 @@ D:\VAR\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.pdb D:\VAR\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.frmServidores.resources D:\VAR\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.frmBaseDatos.resources D:\VAR\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.frmPrincipal.resources +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.exe +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.pdb +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\bin\Debug\ServerExplorer.exe +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\bin\Debug\ServerExplorer.pdb +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ResolveAssemblyReference.cache +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.frmBaseDatos.resources +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.frmPrincipal.resources +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.frmServidores.resources +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.Properties.Resources.resources +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ResGen.read.1.tlog +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ResGen.write.1.tlog +C:\Users\val\Desktop\ServerExplorer\ServerExplorer\obj\Debug\ServerExplorer.frmCodeGenConfig.resources diff --git a/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.exe b/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.exe index 171443e..94d05e4 100644 Binary files a/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.exe and b/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.exe differ diff --git a/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.frmCodeGenConfig.resources b/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.frmCodeGenConfig.resources new file mode 100644 index 0000000..06c24d0 Binary files /dev/null and b/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.frmCodeGenConfig.resources differ diff --git a/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.pdb b/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.pdb index 38761d9..5a3e489 100644 Binary files a/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.pdb and b/ServerExplorer/ServerExplorer/obj/Debug/ServerExplorer.pdb differ diff --git a/ServerExplorer/ServerExplorer/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/ServerExplorer/ServerExplorer/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 0000000..d26bc29 Binary files /dev/null and b/ServerExplorer/ServerExplorer/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/ServerExplorer/UpgradeLog.XML b/ServerExplorer/UpgradeLog.XML new file mode 100644 index 0000000..ef73bfa --- /dev/null +++ b/ServerExplorer/UpgradeLog.XML @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ServerExplorer/_UpgradeReport_Files/UpgradeReport.css b/ServerExplorer/_UpgradeReport_Files/UpgradeReport.css new file mode 100644 index 0000000..fae98af --- /dev/null +++ b/ServerExplorer/_UpgradeReport_Files/UpgradeReport.css @@ -0,0 +1,207 @@ +BODY +{ + BACKGROUND-COLOR: white; + FONT-FAMILY: "Verdana", sans-serif; + FONT-SIZE: 100%; + MARGIN-LEFT: 0px; + MARGIN-TOP: 0px +} +P +{ + FONT-FAMILY: "Verdana", sans-serif; + FONT-SIZE: 70%; + LINE-HEIGHT: 12pt; + MARGIN-BOTTOM: 0px; + MARGIN-LEFT: 10px; + MARGIN-TOP: 10px +} +.note +{ + BACKGROUND-COLOR: #ffffff; + COLOR: #336699; + FONT-FAMILY: "Verdana", sans-serif; + FONT-SIZE: 100%; + MARGIN-BOTTOM: 0px; + MARGIN-LEFT: 0px; + MARGIN-TOP: 0px; + PADDING-RIGHT: 10px +} +.infotable +{ + BACKGROUND-COLOR: #f0f0e0; + BORDER-BOTTOM: #ffffff 0px solid; + BORDER-COLLAPSE: collapse; + BORDER-LEFT: #ffffff 0px solid; + BORDER-RIGHT: #ffffff 0px solid; + BORDER-TOP: #ffffff 0px solid; + FONT-SIZE: 70%; + MARGIN-LEFT: 10px +} +.issuetable +{ + BACKGROUND-COLOR: #ffffe8; + BORDER-COLLAPSE: collapse; + COLOR: #000000; + FONT-SIZE: 100%; + MARGIN-BOTTOM: 10px; + MARGIN-LEFT: 13px; + MARGIN-TOP: 0px +} +.issuetitle +{ + BACKGROUND-COLOR: #ffffff; + BORDER-BOTTOM: #dcdcdc 1px solid; + BORDER-TOP: #dcdcdc 1px; + COLOR: #003366; + FONT-WEIGHT: normal +} +.header +{ + BACKGROUND-COLOR: #cecf9c; + BORDER-BOTTOM: #ffffff 1px solid; + BORDER-LEFT: #ffffff 1px solid; + BORDER-RIGHT: #ffffff 1px solid; + BORDER-TOP: #ffffff 1px solid; + COLOR: #000000; + FONT-WEIGHT: bold +} +.issuehdr +{ + BACKGROUND-COLOR: #E0EBF5; + BORDER-BOTTOM: #dcdcdc 1px solid; + BORDER-TOP: #dcdcdc 1px solid; + COLOR: #000000; + FONT-WEIGHT: normal +} +.issuenone +{ + BACKGROUND-COLOR: #ffffff; + BORDER-BOTTOM: 0px; + BORDER-LEFT: 0px; + BORDER-RIGHT: 0px; + BORDER-TOP: 0px; + COLOR: #000000; + FONT-WEIGHT: normal +} +.content +{ + BACKGROUND-COLOR: #e7e7ce; + BORDER-BOTTOM: #ffffff 1px solid; + BORDER-LEFT: #ffffff 1px solid; + BORDER-RIGHT: #ffffff 1px solid; + BORDER-TOP: #ffffff 1px solid; + PADDING-LEFT: 3px +} +.issuecontent +{ + BACKGROUND-COLOR: #ffffff; + BORDER-BOTTOM: #dcdcdc 1px solid; + BORDER-TOP: #dcdcdc 1px solid; + PADDING-LEFT: 3px +} +A:link +{ + COLOR: #cc6633; + TEXT-DECORATION: underline +} +A:visited +{ + COLOR: #cc6633; +} +A:active +{ + COLOR: #cc6633; +} +A:hover +{ + COLOR: #cc3300; + TEXT-DECORATION: underline +} +H1 +{ + BACKGROUND-COLOR: #003366; + BORDER-BOTTOM: #336699 6px solid; + COLOR: #ffffff; + FONT-SIZE: 130%; + FONT-WEIGHT: normal; + MARGIN: 0em 0em 0em -20px; + PADDING-BOTTOM: 8px; + PADDING-LEFT: 30px; + PADDING-TOP: 16px +} +H2 +{ + COLOR: #000000; + FONT-SIZE: 80%; + FONT-WEIGHT: bold; + MARGIN-BOTTOM: 3px; + MARGIN-LEFT: 10px; + MARGIN-TOP: 20px; + PADDING-LEFT: 0px +} +H3 +{ + COLOR: #000000; + FONT-SIZE: 80%; + FONT-WEIGHT: bold; + MARGIN-BOTTOM: -5px; + MARGIN-LEFT: 10px; + MARGIN-TOP: 20px +} +H4 +{ + COLOR: #000000; + FONT-SIZE: 70%; + FONT-WEIGHT: bold; + MARGIN-BOTTOM: 0px; + MARGIN-TOP: 15px; + PADDING-BOTTOM: 0px +} +UL +{ + COLOR: #000000; + FONT-SIZE: 70%; + LIST-STYLE: square; + MARGIN-BOTTOM: 0pt; + MARGIN-TOP: 0pt +} +OL +{ + COLOR: #000000; + FONT-SIZE: 70%; + LIST-STYLE: square; + MARGIN-BOTTOM: 0pt; + MARGIN-TOP: 0pt +} +LI +{ + LIST-STYLE: square; + MARGIN-LEFT: 0px +} +.expandable +{ + CURSOR: hand +} +.expanded +{ + color: black +} +.collapsed +{ + DISPLAY: none +} +.foot +{ +BACKGROUND-COLOR: #ffffff; +BORDER-BOTTOM: #cecf9c 1px solid; +BORDER-TOP: #cecf9c 2px solid +} +.settings +{ +MARGIN-LEFT: 25PX; +} +.help +{ +TEXT-ALIGN: right; +margin-right: 10px; +} diff --git a/ServerExplorer/_UpgradeReport_Files/UpgradeReport.xslt b/ServerExplorer/_UpgradeReport_Files/UpgradeReport.xslt new file mode 100644 index 0000000..f064951 --- /dev/null +++ b/ServerExplorer/_UpgradeReport_Files/UpgradeReport.xslt @@ -0,0 +1,232 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ Solución: + Proyecto: + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + src + + + + + + + + + + + + +
Nombre de archivoEstadoErroresAdvertencias
+ javascript:document.images[''].click()src + + + + Convertido + + + + Convertido + +
+ + archivos + + + 1 archivo + + + Convertido:
+ No convertido: +
+
+
+ + + + : + + + + + + + + + Informe de conversión + <xsl:if test="Properties/Property[@Name='LogNumber']"> + <xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/> + </xsl:if> + + + + +

Informe de conversión -

+ +

+ Tiempo de conversión:
+

+ + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + +
+ Configuración de conversión +

+ + +
+
diff --git a/ServerExplorer/_UpgradeReport_Files/UpgradeReport_Minus.gif b/ServerExplorer/_UpgradeReport_Files/UpgradeReport_Minus.gif new file mode 100644 index 0000000..17751cb Binary files /dev/null and b/ServerExplorer/_UpgradeReport_Files/UpgradeReport_Minus.gif differ diff --git a/ServerExplorer/_UpgradeReport_Files/UpgradeReport_Plus.gif b/ServerExplorer/_UpgradeReport_Files/UpgradeReport_Plus.gif new file mode 100644 index 0000000..f6009ca Binary files /dev/null and b/ServerExplorer/_UpgradeReport_Files/UpgradeReport_Plus.gif differ