From 0ab6a432f5694d2e71edd02a23ecc342d73e990c Mon Sep 17 00:00:00 2001 From: victinass Date: Sun, 28 Jan 2024 16:54:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Battleship/Battleship.sln | 25 +++++ Battleship/Battleship/Battleship.csproj | 11 +++ Battleship/Battleship/Form1.Designer.cs | 39 ++++++++ Battleship/Battleship/Form1.cs | 10 ++ Battleship/Battleship/Form1.resx | 120 ++++++++++++++++++++++++ Battleship/Battleship/Program.cs | 17 ++++ 6 files changed, 222 insertions(+) create mode 100644 Battleship/Battleship.sln create mode 100644 Battleship/Battleship/Battleship.csproj create mode 100644 Battleship/Battleship/Form1.Designer.cs create mode 100644 Battleship/Battleship/Form1.cs create mode 100644 Battleship/Battleship/Form1.resx create mode 100644 Battleship/Battleship/Program.cs diff --git a/Battleship/Battleship.sln b/Battleship/Battleship.sln new file mode 100644 index 0000000..548ccf5 --- /dev/null +++ b/Battleship/Battleship.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34511.84 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Battleship", "Battleship\Battleship.csproj", "{DC919F62-7DFE-4681-AFEE-A93670D94A19}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DC919F62-7DFE-4681-AFEE-A93670D94A19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DC919F62-7DFE-4681-AFEE-A93670D94A19}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DC919F62-7DFE-4681-AFEE-A93670D94A19}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DC919F62-7DFE-4681-AFEE-A93670D94A19}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {26854A0E-6E73-4ADE-99DF-237A8B263128} + EndGlobalSection +EndGlobal diff --git a/Battleship/Battleship/Battleship.csproj b/Battleship/Battleship/Battleship.csproj new file mode 100644 index 0000000..663fdb8 --- /dev/null +++ b/Battleship/Battleship/Battleship.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net8.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/Battleship/Battleship/Form1.Designer.cs b/Battleship/Battleship/Form1.Designer.cs new file mode 100644 index 0000000..18ae06a --- /dev/null +++ b/Battleship/Battleship/Form1.Designer.cs @@ -0,0 +1,39 @@ +namespace Battleship +{ + 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.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} diff --git a/Battleship/Battleship/Form1.cs b/Battleship/Battleship/Form1.cs new file mode 100644 index 0000000..1d6c6e1 --- /dev/null +++ b/Battleship/Battleship/Form1.cs @@ -0,0 +1,10 @@ +namespace Battleship +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/Battleship/Battleship/Form1.resx b/Battleship/Battleship/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Battleship/Battleship/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/Battleship/Battleship/Program.cs b/Battleship/Battleship/Program.cs new file mode 100644 index 0000000..48b33ea --- /dev/null +++ b/Battleship/Battleship/Program.cs @@ -0,0 +1,17 @@ +namespace Battleship +{ + 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