From 9863bdba24ef05757ff5525f2cf6e8d605ff9819 Mon Sep 17 00:00:00 2001 From: DavidMakarov Date: Fri, 4 Oct 2024 06:47:49 +0400 Subject: [PATCH] update dirs --- .../UncheckedNullException.cs | 2 +- .../UnexpectedTypeException.cs | 2 +- Components/User.cs | 23 ------------------- Components/{ => Visual}/ColumnInfo.cs | 4 ++-- .../UserControlIntegerInput.Designer.cs | 0 .../{ => Visual}/UserControlIntegerInput.cs | 3 ++- .../{ => Visual}/UserControlIntegerInput.resx | 0 .../UserControlStringsListBox.Designer.cs | 0 .../{ => Visual}/UserControlStringsListBox.cs | 0 .../UserControlStringsListBox.resx | 0 .../{ => Visual}/UserControlTable.Designer.cs | 0 Components/{ => Visual}/UserControlTable.cs | 1 + Components/{ => Visual}/UserControlTable.resx | 0 13 files changed, 7 insertions(+), 28 deletions(-) rename Components/{ => Exceptions}/UncheckedNullException.cs (90%) rename Components/{ => Exceptions}/UnexpectedTypeException.cs (90%) delete mode 100644 Components/User.cs rename Components/{ => Visual}/ColumnInfo.cs (89%) rename Components/{ => Visual}/UserControlIntegerInput.Designer.cs (100%) rename Components/{ => Visual}/UserControlIntegerInput.cs (97%) rename Components/{ => Visual}/UserControlIntegerInput.resx (100%) rename Components/{ => Visual}/UserControlStringsListBox.Designer.cs (100%) rename Components/{ => Visual}/UserControlStringsListBox.cs (100%) rename Components/{ => Visual}/UserControlStringsListBox.resx (100%) rename Components/{ => Visual}/UserControlTable.Designer.cs (100%) rename Components/{ => Visual}/UserControlTable.cs (99%) rename Components/{ => Visual}/UserControlTable.resx (100%) diff --git a/Components/UncheckedNullException.cs b/Components/Exceptions/UncheckedNullException.cs similarity index 90% rename from Components/UncheckedNullException.cs rename to Components/Exceptions/UncheckedNullException.cs index 73b6e8c..e66fdae 100644 --- a/Components/UncheckedNullException.cs +++ b/Components/Exceptions/UncheckedNullException.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace WinFormsLibrary1 +namespace Components.Exceptions { public class UncheckedNullException : Exception { diff --git a/Components/UnexpectedTypeException.cs b/Components/Exceptions/UnexpectedTypeException.cs similarity index 90% rename from Components/UnexpectedTypeException.cs rename to Components/Exceptions/UnexpectedTypeException.cs index 19eace9..e742c0a 100644 --- a/Components/UnexpectedTypeException.cs +++ b/Components/Exceptions/UnexpectedTypeException.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace WinFormsLibrary1 +namespace Components.Exceptions { public class UnexpectedTypeException : Exception { diff --git a/Components/User.cs b/Components/User.cs deleted file mode 100644 index 8a521b8..0000000 --- a/Components/User.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace WinFormsLibrary1 -{ - public class User - { - public string username { get; private set; } - public string email { get; private set; } - public DateTime birthday { get; private set; } - - public User(string username, string email, DateTime birthday) - { - this.username = username; - this.email = email; - this.birthday = birthday; - } - - } -} diff --git a/Components/ColumnInfo.cs b/Components/Visual/ColumnInfo.cs similarity index 89% rename from Components/ColumnInfo.cs rename to Components/Visual/ColumnInfo.cs index f504008..553b5dd 100644 --- a/Components/ColumnInfo.cs +++ b/Components/Visual/ColumnInfo.cs @@ -4,12 +4,12 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace WinFormsLibrary1 +namespace Components.Visual { public class ColumnInfo { public string HeaderText { get; set; } = string.Empty; - public int Width { get; set; } + public int Width { get; set; } public bool Visible { get; set; } public string Name { get; set; } = string.Empty; public ColumnInfo(string headerText, string name, int width, bool visible) diff --git a/Components/UserControlIntegerInput.Designer.cs b/Components/Visual/UserControlIntegerInput.Designer.cs similarity index 100% rename from Components/UserControlIntegerInput.Designer.cs rename to Components/Visual/UserControlIntegerInput.Designer.cs diff --git a/Components/UserControlIntegerInput.cs b/Components/Visual/UserControlIntegerInput.cs similarity index 97% rename from Components/UserControlIntegerInput.cs rename to Components/Visual/UserControlIntegerInput.cs index 3413573..8754656 100644 --- a/Components/UserControlIntegerInput.cs +++ b/Components/Visual/UserControlIntegerInput.cs @@ -1,4 +1,5 @@ -using System; +using Components.Exceptions; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; diff --git a/Components/UserControlIntegerInput.resx b/Components/Visual/UserControlIntegerInput.resx similarity index 100% rename from Components/UserControlIntegerInput.resx rename to Components/Visual/UserControlIntegerInput.resx diff --git a/Components/UserControlStringsListBox.Designer.cs b/Components/Visual/UserControlStringsListBox.Designer.cs similarity index 100% rename from Components/UserControlStringsListBox.Designer.cs rename to Components/Visual/UserControlStringsListBox.Designer.cs diff --git a/Components/UserControlStringsListBox.cs b/Components/Visual/UserControlStringsListBox.cs similarity index 100% rename from Components/UserControlStringsListBox.cs rename to Components/Visual/UserControlStringsListBox.cs diff --git a/Components/UserControlStringsListBox.resx b/Components/Visual/UserControlStringsListBox.resx similarity index 100% rename from Components/UserControlStringsListBox.resx rename to Components/Visual/UserControlStringsListBox.resx diff --git a/Components/UserControlTable.Designer.cs b/Components/Visual/UserControlTable.Designer.cs similarity index 100% rename from Components/UserControlTable.Designer.cs rename to Components/Visual/UserControlTable.Designer.cs diff --git a/Components/UserControlTable.cs b/Components/Visual/UserControlTable.cs similarity index 99% rename from Components/UserControlTable.cs rename to Components/Visual/UserControlTable.cs index f341e31..5f3a2a8 100644 --- a/Components/UserControlTable.cs +++ b/Components/Visual/UserControlTable.cs @@ -8,6 +8,7 @@ using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Components.Visual; namespace WinFormsLibrary1 { diff --git a/Components/UserControlTable.resx b/Components/Visual/UserControlTable.resx similarity index 100% rename from Components/UserControlTable.resx rename to Components/Visual/UserControlTable.resx