From 30e450491cbf1f11e5afa564357ee45058a3183a Mon Sep 17 00:00:00 2001 From: fosanz Date: Fri, 27 Oct 2023 19:26:35 +0200 Subject: [PATCH] Agregar archivos de proyecto. --- ProgramOpener.sln | 25 ++++++ ProgramOpener/Form1.Designer.cs | 132 +++++++++++++++++++++++++++++ ProgramOpener/Form1.cs | 33 ++++++++ ProgramOpener/Form1.resx | 60 +++++++++++++ ProgramOpener/Program.cs | 18 ++++ ProgramOpener/ProgramOpener.csproj | 11 +++ 6 files changed, 279 insertions(+) create mode 100644 ProgramOpener.sln create mode 100644 ProgramOpener/Form1.Designer.cs create mode 100644 ProgramOpener/Form1.cs create mode 100644 ProgramOpener/Form1.resx create mode 100644 ProgramOpener/Program.cs create mode 100644 ProgramOpener/ProgramOpener.csproj diff --git a/ProgramOpener.sln b/ProgramOpener.sln new file mode 100644 index 0000000..af1f0e3 --- /dev/null +++ b/ProgramOpener.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33205.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProgramOpener", "ProgramOpener\ProgramOpener.csproj", "{A0F1194E-C4A5-469A-A4E5-393712D4399F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A0F1194E-C4A5-469A-A4E5-393712D4399F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A0F1194E-C4A5-469A-A4E5-393712D4399F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A0F1194E-C4A5-469A-A4E5-393712D4399F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A0F1194E-C4A5-469A-A4E5-393712D4399F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BD452897-6C03-4EFD-B1A1-9200A6D1853E} + EndGlobalSection +EndGlobal diff --git a/ProgramOpener/Form1.Designer.cs b/ProgramOpener/Form1.Designer.cs new file mode 100644 index 0000000..2188b7f --- /dev/null +++ b/ProgramOpener/Form1.Designer.cs @@ -0,0 +1,132 @@ +namespace ProgramOpener +{ + 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() + { + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.button4 = new System.Windows.Forms.Button(); + this.tableLayoutPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Controls.Add(this.button1, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.button2, 1, 0); + this.tableLayoutPanel1.Controls.Add(this.button3, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.button4, 1, 1); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 2; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(800, 450); + this.tableLayoutPanel1.TabIndex = 0; + // + // button1 + // + this.button1.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.button1.Location = new System.Drawing.Point(3, 3); + this.button1.Name = "bVSCode"; + this.button1.Size = new System.Drawing.Size(394, 219); + this.button1.TabIndex = 0; + this.button1.Text = "Visual Studio Code"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.VSCode_Click); + // + // button2 + // + this.button2.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.button2.Location = new System.Drawing.Point(403, 3); + this.button2.Name = "bVStudio"; + this.button2.Size = new System.Drawing.Size(394, 219); + this.button2.TabIndex = 1; + this.button2.Text = "Visual Studio"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.VS_Click); + // + // button3 + // + this.button3.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.button3.Location = new System.Drawing.Point(3, 228); + this.button3.Name = "bIntelliJ"; + this.button3.Size = new System.Drawing.Size(394, 219); + this.button3.TabIndex = 2; + this.button3.Text = "IntelliJ"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.IntelliJ_Click); + // + // button4 + // + this.button4.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.button4.Location = new System.Drawing.Point(403, 228); + this.button4.Name = "bAndroidStudio"; + this.button4.Size = new System.Drawing.Size(394, 219); + this.button4.TabIndex = 3; + this.button4.Text = "Android Studio"; + this.button4.UseVisualStyleBackColor = true; + this.button4.Click += new System.EventHandler(this.AndroidStudio_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.tableLayoutPanel1); + this.MinimumSize = new System.Drawing.Size(200, 200); + this.Name = "Form1"; + this.Text = "Form1"; + this.tableLayoutPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private TableLayoutPanel tableLayoutPanel1; + private Button button1; + private Button button2; + private Button button3; + private Button button4; + } +} \ No newline at end of file diff --git a/ProgramOpener/Form1.cs b/ProgramOpener/Form1.cs new file mode 100644 index 0000000..f2a7be4 --- /dev/null +++ b/ProgramOpener/Form1.cs @@ -0,0 +1,33 @@ +using System.Diagnostics; + +namespace ProgramOpener +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + + } + + private void IntelliJ_Click(object sender, EventArgs e) + { + Process.Start(@"C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.1\bin\idea64.exe"); + } + + private void VSCode_Click(object sender, EventArgs e) + { + Process.Start(@"C:\Users\fosan\AppData\Local\Programs\Microsoft VS Code\Code.exe"); + } + + private void VS_Click(object sender, EventArgs e) + { + Process.Start(@"C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe"); + } + + private void AndroidStudio_Click(object sender, EventArgs e) + { + Process.Start(@"D:\AndroidStudio\bin\studio64.exe"); + } + } +} \ No newline at end of file diff --git a/ProgramOpener/Form1.resx b/ProgramOpener/Form1.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/ProgramOpener/Form1.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/ProgramOpener/Program.cs b/ProgramOpener/Program.cs new file mode 100644 index 0000000..a24fe6c --- /dev/null +++ b/ProgramOpener/Program.cs @@ -0,0 +1,18 @@ +namespace ProgramOpener +{ + 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 diff --git a/ProgramOpener/ProgramOpener.csproj b/ProgramOpener/ProgramOpener.csproj new file mode 100644 index 0000000..b57c89e --- /dev/null +++ b/ProgramOpener/ProgramOpener.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net6.0-windows + enable + true + enable + + + \ No newline at end of file