diff --git a/RecurseButtonsTest.sln b/RecurseButtonsTest.sln new file mode 100644 index 0000000..a8d147a --- /dev/null +++ b/RecurseButtonsTest.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30907.101 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RecurseButtonsTest", "RecurseButtonsTest\RecurseButtonsTest.csproj", "{B3111AD7-1FE3-4BC0-B340-A89EE70E99FB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B3111AD7-1FE3-4BC0-B340-A89EE70E99FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B3111AD7-1FE3-4BC0-B340-A89EE70E99FB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B3111AD7-1FE3-4BC0-B340-A89EE70E99FB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B3111AD7-1FE3-4BC0-B340-A89EE70E99FB}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7E999BDC-DAC0-4048-AA7F-161F396046F2} + EndGlobalSection +EndGlobal diff --git a/RecurseWindowTest/bin/Debug/RecurseWindowTest.exe.config b/RecurseButtonsTest/App.config similarity index 97% rename from RecurseWindowTest/bin/Debug/RecurseWindowTest.exe.config rename to RecurseButtonsTest/App.config index 5754728..56efbc7 100644 --- a/RecurseWindowTest/bin/Debug/RecurseWindowTest.exe.config +++ b/RecurseButtonsTest/App.config @@ -1,6 +1,6 @@ - - - - - + + + + + \ No newline at end of file diff --git a/RecurseButtonsTest/Form1.Designer.cs b/RecurseButtonsTest/Form1.Designer.cs new file mode 100644 index 0000000..05d286e --- /dev/null +++ b/RecurseButtonsTest/Form1.Designer.cs @@ -0,0 +1,62 @@ + +namespace RecurseButtonsTest +{ + partial class Form1 + { + /// + /// Обязательная переменная конструктора. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Освободить все используемые ресурсы. + /// + /// истинно, если управляемый ресурс должен быть удален; иначе ложно. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Код, автоматически созданный конструктором форм Windows + + /// + /// Требуемый метод для поддержки конструктора — не изменяйте + /// содержимое этого метода с помощью редактора кода. + /// + private void InitializeComponent() + { + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(13, 13); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(55, 30); + this.button1.TabIndex = 0; + this.button1.Text = "Button"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(794, 461); + this.Controls.Add(this.button1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + } +} + diff --git a/RecurseButtonsTest/Form1.cs b/RecurseButtonsTest/Form1.cs new file mode 100644 index 0000000..44d1ea7 --- /dev/null +++ b/RecurseButtonsTest/Form1.cs @@ -0,0 +1,25 @@ +using System; +using System.Drawing; +using System.Windows.Forms; + +namespace RecurseButtonsTest +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + Random rand = new Random(); + Button b1 = new Button(); + b1.Text = "Button"; + b1.Size = new Size(55, 30); + b1.Location = new Point(rand.Next(0, Size.Width - 55), rand.Next(0, Size.Height - 30)); + b1.Click += new EventHandler(button1_Click); + Controls.Add(b1); + } + } +} diff --git a/RecurseButtonsTest/Form1.resx b/RecurseButtonsTest/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RecurseButtonsTest/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/RecurseButtonsTest/Program.cs b/RecurseButtonsTest/Program.cs new file mode 100644 index 0000000..dbf9efc --- /dev/null +++ b/RecurseButtonsTest/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace RecurseButtonsTest +{ + static class Program + { + /// + /// Главная точка входа для приложения. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/RecurseButtonsTest/Properties/AssemblyInfo.cs b/RecurseButtonsTest/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..90af1d2 --- /dev/null +++ b/RecurseButtonsTest/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанных со сборкой. +[assembly: AssemblyTitle("RecurseButtonsTest")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RecurseButtonsTest")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// COM, следует установить атрибут ComVisible в TRUE для этого типа. +[assembly: ComVisible(false)] + +// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM +[assembly: Guid("b3111ad7-1fe3-4bc0-b340-a89ee70e99fb")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Редакция +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RecurseButtonsTest/Properties/Resources.Designer.cs b/RecurseButtonsTest/Properties/Resources.Designer.cs new file mode 100644 index 0000000..6b02683 --- /dev/null +++ b/RecurseButtonsTest/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программным средством. +// Версия среды выполнения: 4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если +// код создан повторно. +// +//------------------------------------------------------------------------------ + + +namespace RecurseButtonsTest.Properties +{ + /// + /// Класс ресурсов со строгим типом для поиска локализованных строк и пр. + /// + // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder + // класс с помощью таких средств, как ResGen или Visual Studio. + // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen + // с параметром /str или заново постройте свой VS-проект. + [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() + { + } + + /// + /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом. + /// + [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("RecurseButtonsTest.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Переопределяет свойство CurrentUICulture текущего потока для всех + /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом. + /// + [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/RecurseButtonsTest/Properties/Resources.resx b/RecurseButtonsTest/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RecurseButtonsTest/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/RecurseButtonsTest/Properties/Settings.Designer.cs b/RecurseButtonsTest/Properties/Settings.Designer.cs new file mode 100644 index 0000000..94c03e9 --- /dev/null +++ b/RecurseButtonsTest/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +namespace RecurseButtonsTest.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/RecurseButtonsTest/Properties/Settings.settings b/RecurseButtonsTest/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RecurseButtonsTest/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RecurseButtonsTest/RecurseButtonsTest.csproj b/RecurseButtonsTest/RecurseButtonsTest.csproj new file mode 100644 index 0000000..1a990a4 --- /dev/null +++ b/RecurseButtonsTest/RecurseButtonsTest.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {B3111AD7-1FE3-4BC0-B340-A89EE70E99FB} + WinExe + RecurseButtonsTest + RecurseButtonsTest + v4.7.2 + 512 + true + true + + + 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/RecurseWindowTest/bin/Debug/RecurseWindowTest.exe b/RecurseWindowTest/bin/Debug/RecurseWindowTest.exe deleted file mode 100644 index 74d161c..0000000 Binary files a/RecurseWindowTest/bin/Debug/RecurseWindowTest.exe and /dev/null differ diff --git a/RecurseWindowTest/bin/Debug/RecurseWindowTest.pdb b/RecurseWindowTest/bin/Debug/RecurseWindowTest.pdb deleted file mode 100644 index c212fbd..0000000 Binary files a/RecurseWindowTest/bin/Debug/RecurseWindowTest.pdb and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/RecurseWindowTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache deleted file mode 100644 index ea28b15..0000000 Binary files a/RecurseWindowTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/RecurseWindowTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100644 index 2754265..0000000 Binary files a/RecurseWindowTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/RecurseWindowTest.Form1.resources b/RecurseWindowTest/obj/Debug/RecurseWindowTest.Form1.resources deleted file mode 100644 index 6c05a97..0000000 Binary files a/RecurseWindowTest/obj/Debug/RecurseWindowTest.Form1.resources and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/RecurseWindowTest.Properties.Resources.resources b/RecurseWindowTest/obj/Debug/RecurseWindowTest.Properties.Resources.resources deleted file mode 100644 index 117573f..0000000 Binary files a/RecurseWindowTest/obj/Debug/RecurseWindowTest.Properties.Resources.resources and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.CoreCompileInputs.cache b/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.CoreCompileInputs.cache deleted file mode 100644 index bfe380c..0000000 --- a/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -8069502011d0681850e57a53d5a1673222f430a6 diff --git a/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.FileListAbsolute.txt b/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.FileListAbsolute.txt deleted file mode 100644 index 626f132..0000000 --- a/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,10 +0,0 @@ -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\bin\Debug\RecurseWindowTest.exe.config -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\bin\Debug\RecurseWindowTest.exe -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\bin\Debug\RecurseWindowTest.pdb -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\obj\Debug\RecurseWindowTest.csprojAssemblyReference.cache -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\obj\Debug\RecurseWindowTest.Form1.resources -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\obj\Debug\RecurseWindowTest.Properties.Resources.resources -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\obj\Debug\RecurseWindowTest.csproj.GenerateResource.cache -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\obj\Debug\RecurseWindowTest.csproj.CoreCompileInputs.cache -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\obj\Debug\RecurseWindowTest.exe -C:\Users\achec\source\repos\RecurseWindowTest\RecurseWindowTest\obj\Debug\RecurseWindowTest.pdb diff --git a/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.GenerateResource.cache b/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.GenerateResource.cache deleted file mode 100644 index af7fd39..0000000 Binary files a/RecurseWindowTest/obj/Debug/RecurseWindowTest.csproj.GenerateResource.cache and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/RecurseWindowTest.csprojAssemblyReference.cache b/RecurseWindowTest/obj/Debug/RecurseWindowTest.csprojAssemblyReference.cache deleted file mode 100644 index 2ce8eab..0000000 Binary files a/RecurseWindowTest/obj/Debug/RecurseWindowTest.csprojAssemblyReference.cache and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/RecurseWindowTest.exe b/RecurseWindowTest/obj/Debug/RecurseWindowTest.exe deleted file mode 100644 index 74d161c..0000000 Binary files a/RecurseWindowTest/obj/Debug/RecurseWindowTest.exe and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/RecurseWindowTest.pdb b/RecurseWindowTest/obj/Debug/RecurseWindowTest.pdb deleted file mode 100644 index c212fbd..0000000 Binary files a/RecurseWindowTest/obj/Debug/RecurseWindowTest.pdb and /dev/null differ diff --git a/RecurseWindowTest/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/RecurseWindowTest/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll deleted file mode 100644 index 53b8470..0000000 Binary files a/RecurseWindowTest/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll and /dev/null differ