From c3d9e902ee4cb0d1759cbdbd1ff252204bab924f Mon Sep 17 00:00:00 2001 From: ghea Date: Sat, 11 Apr 2026 15:00:29 +0700 Subject: [PATCH] First commit --- .gitignore | 3 + Form1.Designer.cs | 39 +++++++++++++ Form1.cs | 10 ++++ Form1.resx | 120 +++++++++++++++++++++++++++++++++++++++ GuessTheDice.csproj | 11 ++++ GuessTheDice.csproj.user | 8 +++ GuessTheDice.slnx | 3 + Program.cs | 17 ++++++ 8 files changed, 211 insertions(+) create mode 100644 .gitignore create mode 100644 Form1.Designer.cs create mode 100644 Form1.cs create mode 100644 Form1.resx create mode 100644 GuessTheDice.csproj create mode 100644 GuessTheDice.csproj.user create mode 100644 GuessTheDice.slnx create mode 100644 Program.cs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e44dd1a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.vs/ +obj/ +bin/ diff --git a/Form1.Designer.cs b/Form1.Designer.cs new file mode 100644 index 0000000..ce6e6bd --- /dev/null +++ b/Form1.Designer.cs @@ -0,0 +1,39 @@ +namespace GuessTheDice +{ + 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() + { + components = new System.ComponentModel.Container(); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Text = "Form1"; + } + + #endregion + } +} diff --git a/Form1.cs b/Form1.cs new file mode 100644 index 0000000..45d11c3 --- /dev/null +++ b/Form1.cs @@ -0,0 +1,10 @@ +namespace GuessTheDice +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/Form1.resx b/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /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/GuessTheDice.csproj b/GuessTheDice.csproj new file mode 100644 index 0000000..5151c0a --- /dev/null +++ b/GuessTheDice.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net10.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/GuessTheDice.csproj.user b/GuessTheDice.csproj.user new file mode 100644 index 0000000..7814ea2 --- /dev/null +++ b/GuessTheDice.csproj.user @@ -0,0 +1,8 @@ + + + + + Form + + + diff --git a/GuessTheDice.slnx b/GuessTheDice.slnx new file mode 100644 index 0000000..4725b10 --- /dev/null +++ b/GuessTheDice.slnx @@ -0,0 +1,3 @@ + + + diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..11a02c8 --- /dev/null +++ b/Program.cs @@ -0,0 +1,17 @@ +namespace GuessTheDice +{ + 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