diff --git a/main.sln b/main.sln new file mode 100644 index 0000000..d0926cc --- /dev/null +++ b/main.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36616.10 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "main", "main\main.csproj", "{19336AFC-CA8E-4251-BFEC-57981A95BC59}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {19336AFC-CA8E-4251-BFEC-57981A95BC59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {19336AFC-CA8E-4251-BFEC-57981A95BC59}.Debug|Any CPU.Build.0 = Debug|Any CPU + {19336AFC-CA8E-4251-BFEC-57981A95BC59}.Release|Any CPU.ActiveCfg = Release|Any CPU + {19336AFC-CA8E-4251-BFEC-57981A95BC59}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {04E5BB03-484A-449F-83EE-8878A0E4B1DA} + EndGlobalSection +EndGlobal diff --git a/main/Main.Designer.cs b/main/Main.Designer.cs new file mode 100644 index 0000000..b84609e --- /dev/null +++ b/main/Main.Designer.cs @@ -0,0 +1,146 @@ +namespace main +{ + partial class Main + { + /// + /// 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() + { + menuStrip1 = new MenuStrip(); + файлToolStripMenuItem = new ToolStripMenuItem(); + ExitToolStripMenuItem = new ToolStripMenuItem(); + сервисToolStripMenuItem = new ToolStripMenuItem(); + проверитьПарольToolStripMenuItem = new ToolStripMenuItem(); + сгенерироватьПарольToolStripMenuItem = new ToolStripMenuItem(); + chkPasswordButton = new Button(); + generatePassword_btn = new Button(); + exit_btn = new Button(); + menuStrip1.SuspendLayout(); + SuspendLayout(); + // + // menuStrip1 + // + menuStrip1.Items.AddRange(new ToolStripItem[] { файлToolStripMenuItem, сервисToolStripMenuItem }); + menuStrip1.Location = new Point(0, 0); + menuStrip1.Name = "menuStrip1"; + menuStrip1.Size = new Size(257, 24); + menuStrip1.TabIndex = 0; + menuStrip1.Text = "menuStrip1"; + // + // файлToolStripMenuItem + // + файлToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { ExitToolStripMenuItem }); + файлToolStripMenuItem.Name = "файлToolStripMenuItem"; + файлToolStripMenuItem.Size = new Size(48, 20); + файлToolStripMenuItem.Text = "Файл"; + // + // ExitToolStripMenuItem + // + ExitToolStripMenuItem.Name = "ExitToolStripMenuItem"; + ExitToolStripMenuItem.Size = new Size(180, 22); + ExitToolStripMenuItem.Text = "Выход"; + ExitToolStripMenuItem.Click += ExitToolStripMenuItem_Click; + // + // сервисToolStripMenuItem + // + сервисToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { проверитьПарольToolStripMenuItem, сгенерироватьПарольToolStripMenuItem }); + сервисToolStripMenuItem.Name = "сервисToolStripMenuItem"; + сервисToolStripMenuItem.Size = new Size(59, 20); + сервисToolStripMenuItem.Text = "Сервис"; + // + // проверитьПарольToolStripMenuItem + // + проверитьПарольToolStripMenuItem.Name = "проверитьПарольToolStripMenuItem"; + проверитьПарольToolStripMenuItem.Size = new Size(200, 22); + проверитьПарольToolStripMenuItem.Text = "Проверить пароль"; + // + // сгенерироватьПарольToolStripMenuItem + // + сгенерироватьПарольToolStripMenuItem.Name = "сгенерироватьПарольToolStripMenuItem"; + сгенерироватьПарольToolStripMenuItem.Size = new Size(200, 22); + сгенерироватьПарольToolStripMenuItem.Text = "Сгенерировать пароль"; + // + // chkPasswordButton + // + chkPasswordButton.Location = new Point(12, 38); + chkPasswordButton.Name = "chkPasswordButton"; + chkPasswordButton.Size = new Size(230, 40); + chkPasswordButton.TabIndex = 1; + chkPasswordButton.Text = "Проверить пароль"; + chkPasswordButton.UseVisualStyleBackColor = true; + // + // generatePassword_btn + // + generatePassword_btn.Location = new Point(12, 84); + generatePassword_btn.Name = "generatePassword_btn"; + generatePassword_btn.Size = new Size(230, 40); + generatePassword_btn.TabIndex = 2; + generatePassword_btn.Text = "Сгенерировать пароль"; + generatePassword_btn.UseVisualStyleBackColor = true; + // + // exit_btn + // + exit_btn.Location = new Point(12, 130); + exit_btn.Name = "exit_btn"; + exit_btn.Size = new Size(230, 40); + exit_btn.TabIndex = 3; + exit_btn.Text = "Выход"; + exit_btn.UseVisualStyleBackColor = true; + exit_btn.Click += exit_btn_Click; + // + // Main + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(257, 180); + Controls.Add(exit_btn); + Controls.Add(generatePassword_btn); + Controls.Add(chkPasswordButton); + Controls.Add(menuStrip1); + MainMenuStrip = menuStrip1; + MaximizeBox = false; + MinimizeBox = false; + Name = "Main"; + ShowIcon = false; + Text = "Проверка надежности пароля"; + menuStrip1.ResumeLayout(false); + menuStrip1.PerformLayout(); + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private MenuStrip menuStrip1; + private ToolStripMenuItem файлToolStripMenuItem; + private ToolStripMenuItem ExitToolStripMenuItem; + private ToolStripMenuItem сервисToolStripMenuItem; + private ToolStripMenuItem проверитьПарольToolStripMenuItem; + private ToolStripMenuItem сгенерироватьПарольToolStripMenuItem; + private Button chkPasswordButton; + private Button generatePassword_btn; + private Button exit_btn; + } +} diff --git a/main/Main.cs b/main/Main.cs new file mode 100644 index 0000000..21eff80 --- /dev/null +++ b/main/Main.cs @@ -0,0 +1,20 @@ +namespace main +{ + public partial class Main : Form + { + public Main() + { + InitializeComponent(); + } + + private void exit_btn_Click(object sender, EventArgs e) + { + Application.Exit(); + } + + private void ExitToolStripMenuItem_Click(object sender, EventArgs e) + { + Application.Exit(); + } + } +} diff --git a/main/Main.resx b/main/Main.resx new file mode 100644 index 0000000..78c5302 --- /dev/null +++ b/main/Main.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 17, 17 + + \ No newline at end of file diff --git a/main/Program.cs b/main/Program.cs new file mode 100644 index 0000000..12854ec --- /dev/null +++ b/main/Program.cs @@ -0,0 +1,17 @@ +namespace main +{ + 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 Main()); + } + } +} \ No newline at end of file diff --git a/main/main.csproj b/main/main.csproj new file mode 100644 index 0000000..663fdb8 --- /dev/null +++ b/main/main.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net8.0-windows + enable + true + enable + + + \ No newline at end of file