From 8a02a0cb797643c17484217a0e7c85dc28da5501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Czegl=C3=A9di=20=C3=81ron?= Date: Thu, 25 Dec 2014 00:13:00 +0100 Subject: [PATCH] Initial commit --- .gitattributes | 17 + .gitignore | 303 ++++++++++++++++ "Jelsz\303\263Gener\303\241tor.sln" | 25 ++ "Jelsz\303\263Gener\303\241tor/App.config" | 6 + .../Form1.Designer.cs" | 330 +++++++++++++++++ "Jelsz\303\263Gener\303\241tor/Form1.cs" | 334 ++++++++++++++++++ "Jelsz\303\263Gener\303\241tor/Form1.resx" | 120 +++++++ .../Jelsz\303\263Gener\303\241tor.csproj" | 90 +++++ "Jelsz\303\263Gener\303\241tor/Program.cs" | 22 ++ .../Properties/AssemblyInfo.cs" | 36 ++ .../Properties/Resources.Designer.cs" | 71 ++++ .../Properties/Resources.resx" | 117 ++++++ .../Properties/Settings.Designer.cs" | 30 ++ .../Properties/Settings.settings" | 7 + 14 files changed, 1508 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 "Jelsz\303\263Gener\303\241tor.sln" create mode 100644 "Jelsz\303\263Gener\303\241tor/App.config" create mode 100644 "Jelsz\303\263Gener\303\241tor/Form1.Designer.cs" create mode 100644 "Jelsz\303\263Gener\303\241tor/Form1.cs" create mode 100644 "Jelsz\303\263Gener\303\241tor/Form1.resx" create mode 100644 "Jelsz\303\263Gener\303\241tor/Jelsz\303\263Gener\303\241tor.csproj" create mode 100644 "Jelsz\303\263Gener\303\241tor/Program.cs" create mode 100644 "Jelsz\303\263Gener\303\241tor/Properties/AssemblyInfo.cs" create mode 100644 "Jelsz\303\263Gener\303\241tor/Properties/Resources.Designer.cs" create mode 100644 "Jelsz\303\263Gener\303\241tor/Properties/Resources.resx" create mode 100644 "Jelsz\303\263Gener\303\241tor/Properties/Settings.Designer.cs" create mode 100644 "Jelsz\303\263Gener\303\241tor/Properties/Settings.settings" diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..bdb0cab --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49f18f2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,303 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# Windows +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk diff --git "a/Jelsz\303\263Gener\303\241tor.sln" "b/Jelsz\303\263Gener\303\241tor.sln" new file mode 100644 index 0000000..a1d9e93 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor.sln" @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27004.2005 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JelszóGenerátor", "JelszóGenerátor\JelszóGenerátor.csproj", "{E56C6F50-4842-4096-8887-AD2A41DDE139}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E56C6F50-4842-4096-8887-AD2A41DDE139}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E56C6F50-4842-4096-8887-AD2A41DDE139}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E56C6F50-4842-4096-8887-AD2A41DDE139}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E56C6F50-4842-4096-8887-AD2A41DDE139}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {36CB4D21-C5DA-4523-9E58-3FAD49A0DB3C} + EndGlobalSection +EndGlobal diff --git "a/Jelsz\303\263Gener\303\241tor/App.config" "b/Jelsz\303\263Gener\303\241tor/App.config" new file mode 100644 index 0000000..8e15646 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/Jelsz\303\263Gener\303\241tor/Form1.Designer.cs" "b/Jelsz\303\263Gener\303\241tor/Form1.Designer.cs" new file mode 100644 index 0000000..2c539a7 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Form1.Designer.cs" @@ -0,0 +1,330 @@ +namespace JelszóGenerátor +{ + 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.checkBox1 = new System.Windows.Forms.CheckBox(); + this.checkBox2 = new System.Windows.Forms.CheckBox(); + this.checkBox3 = new System.Windows.Forms.CheckBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.checkBox4 = new System.Windows.Forms.CheckBox(); + this.label2 = new System.Windows.Forms.Label(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.button3 = new System.Windows.Forms.Button(); + this.button4 = new System.Windows.Forms.Button(); + this.checkBox5 = new System.Windows.Forms.CheckBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.linkLabel1 = new System.Windows.Forms.LinkLabel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel2.SuspendLayout(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.Location = new System.Drawing.Point(22, 34); + this.checkBox1.Margin = new System.Windows.Forms.Padding(5); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(106, 29); + this.checkBox1.TabIndex = 0; + this.checkBox1.Text = "kisbetűk"; + this.checkBox1.UseVisualStyleBackColor = true; + // + // checkBox2 + // + this.checkBox2.AutoSize = true; + this.checkBox2.Location = new System.Drawing.Point(140, 34); + this.checkBox2.Margin = new System.Windows.Forms.Padding(5); + this.checkBox2.Name = "checkBox2"; + this.checkBox2.Size = new System.Drawing.Size(125, 29); + this.checkBox2.TabIndex = 1; + this.checkBox2.Text = "nagybetűk"; + this.checkBox2.UseVisualStyleBackColor = true; + // + // checkBox3 + // + this.checkBox3.AutoSize = true; + this.checkBox3.Location = new System.Drawing.Point(277, 34); + this.checkBox3.Margin = new System.Windows.Forms.Padding(5); + this.checkBox3.Name = "checkBox3"; + this.checkBox3.Size = new System.Drawing.Size(102, 29); + this.checkBox3.TabIndex = 2; + this.checkBox3.Text = "számok"; + this.checkBox3.UseVisualStyleBackColor = true; + // + // textBox1 + // + this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.textBox1.Location = new System.Drawing.Point(185, 2); + this.textBox1.Margin = new System.Windows.Forms.Padding(5); + this.textBox1.MaxLength = 3; + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(48, 30); + this.textBox1.TabIndex = 3; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(9, 4); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(176, 25); + this.label1.TabIndex = 4; + this.label1.Text = "Karakterek száma:"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(6, 70); + this.button1.Margin = new System.Windows.Forms.Padding(4); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(767, 90); + this.button1.TabIndex = 5; + this.button1.Text = "Jelszó generálása"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // button2 + // + this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F); + this.button2.Location = new System.Drawing.Point(6, 167); + this.button2.Margin = new System.Windows.Forms.Padding(4); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(122, 60); + this.button2.TabIndex = 9; + this.button2.Text = "Vágólapra másolás"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // checkBox4 + // + this.checkBox4.AutoSize = true; + this.checkBox4.Location = new System.Drawing.Point(387, 34); + this.checkBox4.Name = "checkBox4"; + this.checkBox4.Size = new System.Drawing.Size(205, 29); + this.checkBox4.TabIndex = 11; + this.checkBox4.Text = "speciális karakterek"; + this.checkBox4.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(3, 2); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(0, 25); + this.label2.TabIndex = 12; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // textBox3 + // + this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.textBox3.ForeColor = System.Drawing.SystemColors.WindowFrame; + this.textBox3.Location = new System.Drawing.Point(481, 275); + this.textBox3.MaxLength = 50; + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(118, 30); + this.textBox3.TabIndex = 14; + this.textBox3.Text = "pl.: Twitter"; + this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.textBox3.Click += new System.EventHandler(this.textBox3_Click); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(476, 244); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(123, 25); + this.label3.TabIndex = 15; + this.label3.Text = "Jelszó neve:"; + // + // button3 + // + this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F); + this.button3.Location = new System.Drawing.Point(5, 234); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(247, 33); + this.button3.TabIndex = 16; + this.button3.Text = "Fájl útvonalának megadása"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); + // + // button4 + // + this.button4.Location = new System.Drawing.Point(605, 234); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(167, 88); + this.button4.TabIndex = 18; + this.button4.Text = "Jelszó mentése fájlba"; + this.button4.UseVisualStyleBackColor = true; + this.button4.Click += new System.EventHandler(this.button4_Click); + // + // checkBox5 + // + this.checkBox5.AutoSize = true; + this.checkBox5.Location = new System.Drawing.Point(598, 34); + this.checkBox5.Name = "checkBox5"; + this.checkBox5.Size = new System.Drawing.Size(166, 29); + this.checkBox5.TabIndex = 19; + this.checkBox5.Text = "ékezetes betűk"; + this.checkBox5.UseVisualStyleBackColor = true; + // + // comboBox1 + // + this.comboBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F); + this.comboBox1.ForeColor = System.Drawing.SystemColors.WindowFrame; + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Items.AddRange(new object[] { + ".txt", + ".rtf", + ".doc"}); + this.comboBox1.Location = new System.Drawing.Point(387, 234); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(88, 33); + this.comboBox1.TabIndex = 20; + this.comboBox1.Text = ".típus"; + this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); + this.comboBox1.TextChanged += new System.EventHandler(this.comboBox1_TextChanged); + this.comboBox1.MouseHover += new System.EventHandler(this.comboBox1_MouseHover); + // + // textBox2 + // + this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.textBox2.ForeColor = System.Drawing.SystemColors.WindowFrame; + this.textBox2.Location = new System.Drawing.Point(258, 235); + this.textBox2.MaxLength = 100; + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(123, 30); + this.textBox2.TabIndex = 21; + this.textBox2.Text = "fájlnév"; + this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.textBox2.Click += new System.EventHandler(this.textBox2_Click); + this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); + // + // linkLabel1 + // + this.linkLabel1.AutoSize = true; + this.linkLabel1.Location = new System.Drawing.Point(3, 1); + this.linkLabel1.Name = "linkLabel1"; + this.linkLabel1.Size = new System.Drawing.Size(0, 25); + this.linkLabel1.TabIndex = 23; + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); + // + // panel2 + // + this.panel2.AutoScroll = true; + this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel2.Controls.Add(this.linkLabel1); + this.panel2.Location = new System.Drawing.Point(5, 273); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(470, 49); + this.panel2.TabIndex = 24; + // + // panel1 + // + this.panel1.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.panel1.AutoScroll = true; + this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel1.Controls.Add(this.label2); + this.panel1.Location = new System.Drawing.Point(135, 168); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(636, 60); + this.panel1.TabIndex = 25; + // + // Form1 + // + this.AcceptButton = this.button1; + this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; + this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.ClientSize = new System.Drawing.Size(776, 328); + this.Controls.Add(this.panel1); + this.Controls.Add(this.panel2); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.comboBox1); + this.Controls.Add(this.checkBox5); + this.Controls.Add(this.button4); + this.Controls.Add(this.button3); + this.Controls.Add(this.label3); + this.Controls.Add(this.textBox3); + this.Controls.Add(this.checkBox4); + this.Controls.Add(this.button2); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.checkBox3); + this.Controls.Add(this.checkBox2); + this.Controls.Add(this.checkBox1); + this.Controls.Add(this.button1); + this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; + this.Margin = new System.Windows.Forms.Padding(5); + this.MaximizeBox = false; + this.Name = "Form1"; + this.ShowIcon = false; + this.Text = "Jelszó generátor program"; + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.CheckBox checkBox2; + private System.Windows.Forms.CheckBox checkBox3; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.CheckBox checkBox4; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.CheckBox checkBox5; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.LinkLabel linkLabel1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel panel1; + } +} + diff --git "a/Jelsz\303\263Gener\303\241tor/Form1.cs" "b/Jelsz\303\263Gener\303\241tor/Form1.cs" new file mode 100644 index 0000000..d7f3608 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Form1.cs" @@ -0,0 +1,334 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace JelszóGenerátor +{ + public partial class Form1 : Form + { + Int32 karakterekSzáma; + + String kisbetűk; + String nagybetűk; + String számok; + String speciálisKarakterek; + String ékezetesBetűk; + + String karakterek; + + Random véletlen; + String jelszó = ""; + + FolderBrowserDialog mappaBöngésző; + String fájlnév = ""; + String fájltípus = ""; + String fájlútvonal = ""; + + String jelszóNév; + + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + karakterek = ""; + jelszó = ""; + + kisbetűk = "abcdefghijklmnopqrstuvwxyz"; + nagybetűk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + számok = "0123456789"; + speciálisKarakterek = @"!#$%'()*+,-./:;<=>?@[\]_"; + ékezetesBetűk = "áÁéÉíÍóÓöÖőŐúÚüÜűŰ"; + + if (textBox1.Text != "") + { + try + { + Int32.Parse(textBox1.Text); + + if (Convert.ToInt32(textBox1.Text) != 0) + { + karakterekSzáma = Convert.ToInt32(textBox1.Text); + + if (textBox1.Text.StartsWith("+")) + { + textBox1.Text = textBox1.Text.Substring(1); + } + else if (textBox1.Text.StartsWith("0") && !textBox1.Text.EndsWith("0")) + { + if (Regex.Matches(textBox1.Text, "0").Count == 1) + { + textBox1.Text = textBox1.Text.Substring(1); + } + else if (Regex.Matches(textBox1.Text, "0").Count == 2) + { + textBox1.Text = textBox1.Text.Substring(2); + } + } + else if (textBox1.Text.StartsWith("0") && textBox1.Text.EndsWith("0")) + { + textBox1.Text = textBox1.Text.Substring(1); + } + else if (karakterekSzáma < 0) + { + karakterekSzáma = Math.Abs(karakterekSzáma); + textBox1.Text = karakterekSzáma.ToString(); + } + + if (checkBox1.Checked) + { + karakterek += kisbetűk; + } + if (checkBox2.Checked) + { + karakterek += nagybetűk; + } + if (checkBox3.Checked) + { + karakterek += számok; + } + if (checkBox4.Checked) + { + karakterek += speciálisKarakterek; + } + if (checkBox5.Checked) + { + karakterek += ékezetesBetűk; + } + + if (checkBox1.Checked || checkBox2.Checked || checkBox3.Checked || checkBox4.Checked || checkBox5.Checked) + { + véletlen = new Random(); + + for (int i = 1; i <= karakterekSzáma; i++) + { + jelszó += karakterek[véletlen.Next(0, karakterek.Length)].ToString(); + label2.Text = jelszó; + } + } + else + { + MessageBox.Show("Adja meg, hogy milyen karaktereket tartalmazhasson a generálandó jelszó!", + "Jelszó generátor program", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + else + { + MessageBox.Show("A generálandó jelszó nem állhat 0 karakterből.", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + catch (FormatException) + { + MessageBox.Show("A generálandó jelszó karaktereinek száma csak egész szám lehet.", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + else + { + MessageBox.Show("Adja meg, hogy hány karaktert tartalmazzon a generálandó jelszó!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + + private void button2_Click(object sender, EventArgs e) + { + if (jelszó != "") + { + Clipboard.SetText(jelszó); + MessageBox.Show("A generált jelszó vágólapra lett másolva."+"\n\n"+"Jelszó: "+jelszó, "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Information); + } + else + { + MessageBox.Show("Generáljon egy új jelszót!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + + private void button3_Click(object sender, EventArgs e) + { + mappaBöngésző = new FolderBrowserDialog(); + + if (textBox2.Text != "fájlnév" && textBox2.Text != "" && !textBox2.Text.StartsWith(" ") && !textBox2.Text.StartsWith(" ")) + { + fájlnév = textBox2.Text.Trim(); + + if (comboBox1.SelectedItem != null) + { + fájltípus = comboBox1.Text; + + try + { + mappaBöngésző.ShowDialog(); + + if (mappaBöngésző.SelectedPath != "") + { + fájlútvonal = mappaBöngésző.SelectedPath + "\\" + fájlnév + fájltípus; + linkLabel1.Text = fájlútvonal; + } + else + { + MessageBox.Show("Adja meg a fájl útvonalát!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + catch (Exception kivétel) + { + MessageBox.Show(kivétel.Message, "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + else + { + MessageBox.Show("Adja meg a fájl típusát!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + else + { + MessageBox.Show("Adja meg a fájl nevét!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + + textBox2.Text = "fájlnév"; + textBox2.ForeColor = Color.DimGray; + } + } + + private void button4_Click(object sender, EventArgs e) + { + try + { + if (fájlútvonal != "" ) + { + if (fájlnév != "") + { + if (fájltípus != "") + { + if (textBox3.Text != "pl.: Twitter" && textBox3.Text != "") + { + jelszóNév = textBox3.Text.Trim() + ": "; + } + else + { + jelszóNév = ""; + } + + if (jelszó != "") + { + using (TextWriter szövegÍró = new StreamWriter(fájlútvonal, true)) + { + szövegÍró.WriteLine(jelszóNév + jelszó); + szövegÍró.WriteLine(""); + + textBox3.Text = "pl.: Twitter"; + textBox3.ForeColor = Color.DimGray; + + MessageBox.Show("A fájl mentése sikeres volt." + "\n\n" + "A fájl útvonala: " + fájlútvonal, "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Information); + } + } + else + { + MessageBox.Show("Generáljon egy új jelszót!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + else + { + MessageBox.Show("Adja meg a fájl típusát!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + else + { + MessageBox.Show("Adja meg a fájl nevét!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + else + { + MessageBox.Show("Adja meg a fájl útvonalát!", "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + } + } + catch (Exception kivétel) + { + MessageBox.Show(Convert.ToString(kivétel), "Jelszó generátor program", + MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + } + + private void textBox2_Click(object sender, EventArgs e) + { + if (textBox2.Text == "fájlnév") + { + textBox2.Text = ""; + } + textBox2.ForeColor = Color.Black; + } + + private void textBox2_TextChanged(object sender, EventArgs e) + { + fájlnév = textBox2.Text; + + if (fájlútvonal != "") + { + if (mappaBöngésző.SelectedPath != "") + { + fájlútvonal = mappaBöngésző.SelectedPath + "\\" + fájlnév + fájltípus; + linkLabel1.Text = fájlútvonal; + } + } + } + + private void textBox3_Click(object sender, EventArgs e) + { + textBox3.ForeColor = Color.Black; + textBox3.Text = ""; + } + + private void comboBox1_TextChanged(object sender, EventArgs e) + { + comboBox1.DropDownStyle = ComboBoxStyle.DropDownList; + } + + private void comboBox1_MouseHover(object sender, EventArgs e) + { + comboBox1.DropDownStyle = ComboBoxStyle.DropDownList; + } + + private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) + { + fájltípus = comboBox1.Text; + + if (fájlútvonal != "" && textBox2.Text != "") + { + if (mappaBöngésző.SelectedPath != "") + { + fájlútvonal = mappaBöngésző.SelectedPath + "\\" + fájlnév + fájltípus; + linkLabel1.Text = fájlútvonal; + } + } + } + + private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + Process.Start("explorer.exe", mappaBöngésző.SelectedPath); + + if (File.Exists(fájlútvonal)) + { + Process.Start("explorer.exe", fájlútvonal); + } + } + } +} diff --git "a/Jelsz\303\263Gener\303\241tor/Form1.resx" "b/Jelsz\303\263Gener\303\241tor/Form1.resx" new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/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/Jelsz\303\263Gener\303\241tor/Jelsz\303\263Gener\303\241tor.csproj" "b/Jelsz\303\263Gener\303\241tor/Jelsz\303\263Gener\303\241tor.csproj" new file mode 100644 index 0000000..5ae8b84 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Jelsz\303\263Gener\303\241tor.csproj" @@ -0,0 +1,90 @@ + + + + + Debug + AnyCPU + {E56C6F50-4842-4096-8887-AD2A41DDE139} + WinExe + Properties + Jelszogenerator + Jelszogenerator + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + \ No newline at end of file diff --git "a/Jelsz\303\263Gener\303\241tor/Program.cs" "b/Jelsz\303\263Gener\303\241tor/Program.cs" new file mode 100644 index 0000000..dea8c21 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Program.cs" @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace JelszóGenerátor +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git "a/Jelsz\303\263Gener\303\241tor/Properties/AssemblyInfo.cs" "b/Jelsz\303\263Gener\303\241tor/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000..2b9026f --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("JelszóGenerátor")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("JelszóGenerátor")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f8b16f72-583d-4cf5-acca-0c730f37b5e6")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/Jelsz\303\263Gener\303\241tor/Properties/Resources.Designer.cs" "b/Jelsz\303\263Gener\303\241tor/Properties/Resources.Designer.cs" new file mode 100644 index 0000000..e235a0f --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Properties/Resources.Designer.cs" @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.18444 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace JelszóGenerátor.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Jelszogenerator.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git "a/Jelsz\303\263Gener\303\241tor/Properties/Resources.resx" "b/Jelsz\303\263Gener\303\241tor/Properties/Resources.resx" new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Properties/Resources.resx" @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git "a/Jelsz\303\263Gener\303\241tor/Properties/Settings.Designer.cs" "b/Jelsz\303\263Gener\303\241tor/Properties/Settings.Designer.cs" new file mode 100644 index 0000000..211a204 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Properties/Settings.Designer.cs" @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.18444 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace JelszóGenerátor.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git "a/Jelsz\303\263Gener\303\241tor/Properties/Settings.settings" "b/Jelsz\303\263Gener\303\241tor/Properties/Settings.settings" new file mode 100644 index 0000000..3964565 --- /dev/null +++ "b/Jelsz\303\263Gener\303\241tor/Properties/Settings.settings" @@ -0,0 +1,7 @@ + + + + + + +