From 0897fa70ef04d2439d2c8513b137633b107ee7f3 Mon Sep 17 00:00:00 2001 From: DelphyAlmond Date: Sun, 3 Mar 2024 17:39:49 +0400 Subject: [PATCH] For2Tranports_remade_Incapsulation_1 --- Cruiser_mech/Cruiser_Lab1/App.config | 6 - Cruiser_mech/Cruiser_Lab1/Cruiser_Lab1.csproj | 80 ------------ Cruiser_mech/Cruiser_Lab1/Form1.Designer.cs | 40 ------ Cruiser_mech/Cruiser_Lab1/Form1.cs | 20 --- Cruiser_mech/Cruiser_Lab1/Program.cs | 22 ---- .../Cruiser_Lab1/Properties/AssemblyInfo.cs | 36 ------ .../Properties/Resources.Designer.cs | 71 ----------- .../Cruiser_Lab1/Properties/Resources.resx | 117 ------------------ .../Properties/Settings.Designer.cs | 30 ----- .../Cruiser_Lab1/Properties/Settings.settings | 7 -- Cruiser_mech/Cruiser_mech.sln | 25 ---- .../CruiserMech/DrawingCruiser.cs | 1 - 12 files changed, 455 deletions(-) delete mode 100644 Cruiser_mech/Cruiser_Lab1/App.config delete mode 100644 Cruiser_mech/Cruiser_Lab1/Cruiser_Lab1.csproj delete mode 100644 Cruiser_mech/Cruiser_Lab1/Form1.Designer.cs delete mode 100644 Cruiser_mech/Cruiser_Lab1/Form1.cs delete mode 100644 Cruiser_mech/Cruiser_Lab1/Program.cs delete mode 100644 Cruiser_mech/Cruiser_Lab1/Properties/AssemblyInfo.cs delete mode 100644 Cruiser_mech/Cruiser_Lab1/Properties/Resources.Designer.cs delete mode 100644 Cruiser_mech/Cruiser_Lab1/Properties/Resources.resx delete mode 100644 Cruiser_mech/Cruiser_Lab1/Properties/Settings.Designer.cs delete mode 100644 Cruiser_mech/Cruiser_Lab1/Properties/Settings.settings delete mode 100644 Cruiser_mech/Cruiser_mech.sln diff --git a/Cruiser_mech/Cruiser_Lab1/App.config b/Cruiser_mech/Cruiser_Lab1/App.config deleted file mode 100644 index b50c74f..0000000 --- a/Cruiser_mech/Cruiser_Lab1/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Cruiser_mech/Cruiser_Lab1/Cruiser_Lab1.csproj b/Cruiser_mech/Cruiser_Lab1/Cruiser_Lab1.csproj deleted file mode 100644 index a6b7aee..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Cruiser_Lab1.csproj +++ /dev/null @@ -1,80 +0,0 @@ - - - - - Debug - AnyCPU - {1B4779B1-B9AA-4912-AE0A-AB506E8EF31B} - WinExe - Cruiser_Lab1 - Cruiser_Lab1 - v4.6.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 diff --git a/Cruiser_mech/Cruiser_Lab1/Form1.Designer.cs b/Cruiser_mech/Cruiser_Lab1/Form1.Designer.cs deleted file mode 100644 index 7a89019..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Form1.Designer.cs +++ /dev/null @@ -1,40 +0,0 @@ -namespace Cruiser_Lab1 -{ - 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/Cruiser_mech/Cruiser_Lab1/Form1.cs b/Cruiser_mech/Cruiser_Lab1/Form1.cs deleted file mode 100644 index 33ccc15..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Form1.cs +++ /dev/null @@ -1,20 +0,0 @@ -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 Cruiser_Lab1 -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} diff --git a/Cruiser_mech/Cruiser_Lab1/Program.cs b/Cruiser_mech/Cruiser_Lab1/Program.cs deleted file mode 100644 index 0e9ba96..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Program.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace Cruiser_Lab1 -{ - internal static class Program - { - /// - /// Главная точка входа для приложения. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); - } - } -} diff --git a/Cruiser_mech/Cruiser_Lab1/Properties/AssemblyInfo.cs b/Cruiser_mech/Cruiser_Lab1/Properties/AssemblyInfo.cs deleted file mode 100644 index 69625dc..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Общие сведения об этой сборке предоставляются следующим набором -// набора атрибутов. Измените значения этих атрибутов для изменения сведений, -// связанных со сборкой. -[assembly: AssemblyTitle("Cruiser_Lab1")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Cruiser_Lab1")] -[assembly: AssemblyCopyright("Copyright © 2024")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми -// для компонентов COM. Если необходимо обратиться к типу в этой сборке через -// COM, следует установить атрибут ComVisible в TRUE для этого типа. -[assembly: ComVisible(false)] - -// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM -[assembly: Guid("1b4779b1-b9aa-4912-ae0a-ab506e8ef31b")] - -// Сведения о версии сборки состоят из указанных ниже четырех значений: -// -// Основной номер версии -// Дополнительный номер версии -// Номер сборки -// Редакция -// -// Можно задать все значения или принять номера сборки и редакции по умолчанию -// используя "*", как показано ниже: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Cruiser_mech/Cruiser_Lab1/Properties/Resources.Designer.cs b/Cruiser_mech/Cruiser_Lab1/Properties/Resources.Designer.cs deleted file mode 100644 index 8be169c..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Этот код создан программным средством. -// Версия среды выполнения: 4.0.30319.42000 -// -// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если -// код создан повторно. -// -//------------------------------------------------------------------------------ - -namespace Cruiser_Lab1.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("Cruiser_Lab1.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/Cruiser_mech/Cruiser_Lab1/Properties/Resources.resx b/Cruiser_mech/Cruiser_Lab1/Properties/Resources.resx deleted file mode 100644 index af7dbeb..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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/Cruiser_mech/Cruiser_Lab1/Properties/Settings.Designer.cs b/Cruiser_mech/Cruiser_Lab1/Properties/Settings.Designer.cs deleted file mode 100644 index d2f274c..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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 Cruiser_Lab1.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/Cruiser_mech/Cruiser_Lab1/Properties/Settings.settings b/Cruiser_mech/Cruiser_Lab1/Properties/Settings.settings deleted file mode 100644 index 3964565..0000000 --- a/Cruiser_mech/Cruiser_Lab1/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/Cruiser_mech/Cruiser_mech.sln b/Cruiser_mech/Cruiser_mech.sln deleted file mode 100644 index 960a604..0000000 --- a/Cruiser_mech/Cruiser_mech.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34525.116 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cruiser_Lab1", "Cruiser_Lab1\Cruiser_Lab1.csproj", "{1B4779B1-B9AA-4912-AE0A-AB506E8EF31B}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1B4779B1-B9AA-4912-AE0A-AB506E8EF31B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1B4779B1-B9AA-4912-AE0A-AB506E8EF31B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1B4779B1-B9AA-4912-AE0A-AB506E8EF31B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1B4779B1-B9AA-4912-AE0A-AB506E8EF31B}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {07D0EA01-74E3-49A0-B66A-4280EB66E84D} - EndGlobalSection -EndGlobal diff --git a/WinF_Lab1_Cruiser/CruiserMech/DrawingCruiser.cs b/WinF_Lab1_Cruiser/CruiserMech/DrawingCruiser.cs index da85cb9..291fe5a 100644 --- a/WinF_Lab1_Cruiser/CruiserMech/DrawingCruiser.cs +++ b/WinF_Lab1_Cruiser/CruiserMech/DrawingCruiser.cs @@ -211,7 +211,6 @@ namespace CruiserMech // { // g.FillRectangle(additionalBrush, _startPosX.Value + 105, _startPosY.Value + 18, 14, 7); // } - // else // { // g.FillRectangle(additionalBrush, _startPosX.Value + 146, _startPosY.Value + 52, 10, 26);