diff --git a/Form1.Designer.cs b/Form1.Designer.cs new file mode 100644 index 0000000..822a8af --- /dev/null +++ b/Form1.Designer.cs @@ -0,0 +1,85 @@ +namespace Lanzador +{ + partial class Form1 + { + /// + /// 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() + { + bCode = new Button(); + label1 = new Label(); + argumento = new TextBox(); + SuspendLayout(); + // + // bCode + // + bCode.Font = new Font("Segoe UI", 15.75F, FontStyle.Regular, GraphicsUnit.Point); + bCode.Location = new Point(26, 101); + bCode.Name = "bCode"; + bCode.Size = new Size(160, 43); + bCode.TabIndex = 0; + bCode.Text = "VisualCode"; + bCode.UseVisualStyleBackColor = true; + bCode.Click += button1_Click; + // + // label1 + // + label1.AutoSize = true; + label1.Font = new Font("XHARP LASER", 18F, FontStyle.Regular, GraphicsUnit.Point); + label1.Location = new Point(26, 31); + label1.Name = "label1"; + label1.Size = new Size(548, 24); + label1.TabIndex = 1; + label1.Text = "Iniciar Visual con un archivo"; + // + // argumento + // + argumento.Location = new Point(208, 116); + argumento.Name = "argumento"; + argumento.Size = new Size(190, 23); + argumento.TabIndex = 2; + argumento.TextChanged += argumento_TextChanged; + // + // Form1 + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Controls.Add(argumento); + Controls.Add(label1); + Controls.Add(bCode); + Name = "Form1"; + Text = "Form1"; + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private Button bCode; + private Label label1; + private TextBox argumento; + } +} \ No newline at end of file diff --git a/Form1.cs b/Form1.cs new file mode 100644 index 0000000..ef02dae --- /dev/null +++ b/Form1.cs @@ -0,0 +1,26 @@ +using System.Diagnostics; + +namespace Lanzador +{ + public partial class Form1 : Form + { + Process miProceso; + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + miProceso = new Process(); + miProceso.StartInfo.FileName = @"Notepad"; + miProceso.StartInfo.Arguments = argumento.Text; + miProceso.Start(); + } + + private void argumento_TextChanged(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/Form1.resx b/Form1.resx new file mode 100644 index 0000000..a395bff --- /dev/null +++ b/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Lanzador.csproj b/Lanzador.csproj new file mode 100644 index 0000000..e1a0735 --- /dev/null +++ b/Lanzador.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net7.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/Lanzador.sln b/Lanzador.sln new file mode 100644 index 0000000..132bb20 --- /dev/null +++ b/Lanzador.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33815.320 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lanzador", "Lanzador.csproj", "{5EA4B7C8-F633-475B-860A-865C8ADAC608}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5EA4B7C8-F633-475B-860A-865C8ADAC608}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5EA4B7C8-F633-475B-860A-865C8ADAC608}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5EA4B7C8-F633-475B-860A-865C8ADAC608}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5EA4B7C8-F633-475B-860A-865C8ADAC608}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1D2AB849-13C1-411A-9B04-438F5512D954} + EndGlobalSection +EndGlobal diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..1ab9f68 --- /dev/null +++ b/Program.cs @@ -0,0 +1,17 @@ +namespace Lanzador +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file