From 2d7374a72c75eb16d6925eb3179c1c735cfd37ca Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 5 Sep 2022 22:14:27 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D1=8B=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B8=D1=82.=20=D0=A1=D0=BE=D0=B7=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Trolleybus/Trolleybus.sln | 25 ++++ Trolleybus/Trolleybus/App.config | 6 + Trolleybus/Trolleybus/Form1.Designer.cs | 41 ++++++ Trolleybus/Trolleybus/Form1.cs | 20 +++ Trolleybus/Trolleybus/Program.cs | 22 ++++ .../Trolleybus/Properties/AssemblyInfo.cs | 36 ++++++ .../Properties/Resources.Designer.cs | 70 +++++++++++ .../Trolleybus/Properties/Resources.resx | 117 ++++++++++++++++++ .../Properties/Settings.Designer.cs | 29 +++++ .../Trolleybus/Properties/Settings.settings | 7 ++ Trolleybus/Trolleybus/Trolleybus.csproj | 80 ++++++++++++ 11 files changed, 453 insertions(+) create mode 100644 Trolleybus/Trolleybus.sln create mode 100644 Trolleybus/Trolleybus/App.config create mode 100644 Trolleybus/Trolleybus/Form1.Designer.cs create mode 100644 Trolleybus/Trolleybus/Form1.cs create mode 100644 Trolleybus/Trolleybus/Program.cs create mode 100644 Trolleybus/Trolleybus/Properties/AssemblyInfo.cs create mode 100644 Trolleybus/Trolleybus/Properties/Resources.Designer.cs create mode 100644 Trolleybus/Trolleybus/Properties/Resources.resx create mode 100644 Trolleybus/Trolleybus/Properties/Settings.Designer.cs create mode 100644 Trolleybus/Trolleybus/Properties/Settings.settings create mode 100644 Trolleybus/Trolleybus/Trolleybus.csproj diff --git a/Trolleybus/Trolleybus.sln b/Trolleybus/Trolleybus.sln new file mode 100644 index 0000000..525704b --- /dev/null +++ b/Trolleybus/Trolleybus.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31624.102 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trolleybus", "Trolleybus\Trolleybus.csproj", "{07E18270-5508-4D1A-A699-8B170C1E8502}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {07E18270-5508-4D1A-A699-8B170C1E8502}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {07E18270-5508-4D1A-A699-8B170C1E8502}.Debug|Any CPU.Build.0 = Debug|Any CPU + {07E18270-5508-4D1A-A699-8B170C1E8502}.Release|Any CPU.ActiveCfg = Release|Any CPU + {07E18270-5508-4D1A-A699-8B170C1E8502}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F19B94FF-2B19-49F0-BFDD-6468ABBEAFE5} + EndGlobalSection +EndGlobal diff --git a/Trolleybus/Trolleybus/App.config b/Trolleybus/Trolleybus/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Trolleybus/Trolleybus/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Trolleybus/Trolleybus/Form1.Designer.cs b/Trolleybus/Trolleybus/Form1.Designer.cs new file mode 100644 index 0000000..b2e84f3 --- /dev/null +++ b/Trolleybus/Trolleybus/Form1.Designer.cs @@ -0,0 +1,41 @@ + +namespace Trolleybus +{ + 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.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/Trolleybus/Trolleybus/Form1.cs b/Trolleybus/Trolleybus/Form1.cs new file mode 100644 index 0000000..ff03b79 --- /dev/null +++ b/Trolleybus/Trolleybus/Form1.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Trolleybus +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/Trolleybus/Trolleybus/Program.cs b/Trolleybus/Trolleybus/Program.cs new file mode 100644 index 0000000..3a773ae --- /dev/null +++ b/Trolleybus/Trolleybus/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Trolleybus +{ + static class Program + { + /// + /// Главная точка входа для приложения. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Trolleybus/Trolleybus/Properties/AssemblyInfo.cs b/Trolleybus/Trolleybus/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..dd1baac --- /dev/null +++ b/Trolleybus/Trolleybus/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанных со сборкой. +[assembly: AssemblyTitle("Trolleybus")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Trolleybus")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// COM, следует установить атрибут ComVisible в TRUE для этого типа. +[assembly: ComVisible(false)] + +// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM +[assembly: Guid("07e18270-5508-4d1a-a699-8b170c1e8502")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Редакция +// +// Можно задать все значения или принять номера сборки и редакции по умолчанию +// используя "*", как показано ниже: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Trolleybus/Trolleybus/Properties/Resources.Designer.cs b/Trolleybus/Trolleybus/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2f95526 --- /dev/null +++ b/Trolleybus/Trolleybus/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программным средством. +// Версия среды выполнения: 4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если +// код создан повторно. +// +//------------------------------------------------------------------------------ + + +namespace Trolleybus.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("Trolleybus.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/Trolleybus/Trolleybus/Properties/Resources.resx b/Trolleybus/Trolleybus/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Trolleybus/Trolleybus/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/Trolleybus/Trolleybus/Properties/Settings.Designer.cs b/Trolleybus/Trolleybus/Properties/Settings.Designer.cs new file mode 100644 index 0000000..68efc8c --- /dev/null +++ b/Trolleybus/Trolleybus/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 Trolleybus.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/Trolleybus/Trolleybus/Properties/Settings.settings b/Trolleybus/Trolleybus/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Trolleybus/Trolleybus/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Trolleybus/Trolleybus/Trolleybus.csproj b/Trolleybus/Trolleybus/Trolleybus.csproj new file mode 100644 index 0000000..5cb518c --- /dev/null +++ b/Trolleybus/Trolleybus/Trolleybus.csproj @@ -0,0 +1,80 @@ + + + + + Debug + AnyCPU + {07E18270-5508-4D1A-A699-8B170C1E8502} + WinExe + Trolleybus + Trolleybus + 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 + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file