diff --git a/Travel_Agency/Travel_Agency/Entities/Client.cs b/Travel_Agency/Travel_Agency/Entities/Client.cs index ec428a4..3b40097 100644 --- a/Travel_Agency/Travel_Agency/Entities/Client.cs +++ b/Travel_Agency/Travel_Agency/Entities/Client.cs @@ -1,8 +1,4 @@  - -using System.Runtime.CompilerServices; -using System.Security.Policy; -using System.Web; using Travel_Agency.Entities.Enums; namespace Travel_Agency.Entities; diff --git a/Travel_Agency/Travel_Agency/Entities/Contract.cs b/Travel_Agency/Travel_Agency/Entities/Contract.cs index 8ec9db4..0db9961 100644 --- a/Travel_Agency/Travel_Agency/Entities/Contract.cs +++ b/Travel_Agency/Travel_Agency/Entities/Contract.cs @@ -1,6 +1,5 @@  namespace Travel_Agency.Entities; - public class Contract { public int Id { get; private set; } @@ -26,5 +25,4 @@ public class Contract Tours = tours }; } - } diff --git a/Travel_Agency/Travel_Agency/Entities/Contract_Tour.cs b/Travel_Agency/Travel_Agency/Entities/Contract_Tour.cs index f6b6feb..c154505 100644 --- a/Travel_Agency/Travel_Agency/Entities/Contract_Tour.cs +++ b/Travel_Agency/Travel_Agency/Entities/Contract_Tour.cs @@ -1,6 +1,5 @@  namespace Travel_Agency.Entities; - public class Contract_Tour { public int Id { get; private set; } diff --git a/Travel_Agency/Travel_Agency/Entities/Payment.cs b/Travel_Agency/Travel_Agency/Entities/Payment.cs index b9f49b2..0234a4f 100644 --- a/Travel_Agency/Travel_Agency/Entities/Payment.cs +++ b/Travel_Agency/Travel_Agency/Entities/Payment.cs @@ -1,6 +1,5 @@  namespace Travel_Agency.Entities; - public class Payment { public int Id { get; private set; } diff --git a/Travel_Agency/Travel_Agency/Entities/Route.cs b/Travel_Agency/Travel_Agency/Entities/Route.cs index 6b5d8ea..0ad7848 100644 --- a/Travel_Agency/Travel_Agency/Entities/Route.cs +++ b/Travel_Agency/Travel_Agency/Entities/Route.cs @@ -1,6 +1,5 @@  namespace Travel_Agency.Entities; - public class Route { public int Id { get; private set; } diff --git a/Travel_Agency/Travel_Agency/Entities/Tour.cs b/Travel_Agency/Travel_Agency/Entities/Tour.cs index 2f6f038..ebe73e5 100644 --- a/Travel_Agency/Travel_Agency/Entities/Tour.cs +++ b/Travel_Agency/Travel_Agency/Entities/Tour.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; + using Travel_Agency.Entities.Enums; namespace Travel_Agency.Entities; @@ -21,7 +17,6 @@ public class Tour Name = name, TypeOfTour = typeOfTour, Price = price - }; - + }; } } diff --git a/Travel_Agency/Travel_Agency/FormTravel_Agency.cs b/Travel_Agency/Travel_Agency/FormTravel_Agency.cs index 6b21fd6..36d4477 100644 --- a/Travel_Agency/Travel_Agency/FormTravel_Agency.cs +++ b/Travel_Agency/Travel_Agency/FormTravel_Agency.cs @@ -1,4 +1,4 @@ -using System.ComponentModel; + using Travel_Agency.Forms; using Unity; @@ -25,7 +25,6 @@ namespace Travel_Agency MessageBox.Show(ex.Message, " ", MessageBoxButtons.OK, MessageBoxIcon.Error); } - } private void ToursToolStripMenuItem_Click(object sender, EventArgs e) @@ -39,7 +38,6 @@ namespace Travel_Agency MessageBox.Show(ex.Message, " ", MessageBoxButtons.OK, MessageBoxIcon.Error); } - } private void RoutesToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/Travel_Agency/Travel_Agency/Forms/FormClient.cs b/Travel_Agency/Travel_Agency/Forms/FormClient.cs index df84a11..9008bd0 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormClient.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormClient.cs @@ -1,12 +1,4 @@ -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; + using Travel_Agency.Entities; using Travel_Agency.Entities.Enums; using Travel_Agency.Repositories; @@ -53,7 +45,6 @@ namespace Travel_Agency.Forms ArgumentNullException(nameof(clientRepository)); comboBoxPosition.DataSource = Enum.GetValues(typeof(PositionInSociety)); - } private void ButtonSave_Click(object sender, EventArgs e) @@ -82,7 +73,6 @@ namespace Travel_Agency.Forms MessageBox.Show(ex.Message, "Ошибка при сохранении", MessageBoxButtons.OK, MessageBoxIcon.Error); } - } private void ButtonCencel_Click(object sender, EventArgs e) => Close(); diff --git a/Travel_Agency/Travel_Agency/Forms/FormClients.cs b/Travel_Agency/Travel_Agency/Forms/FormClients.cs index 10543b8..8228a2f 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormClients.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormClients.cs @@ -1,14 +1,5 @@ -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; + using Travel_Agency.Repositories; -using Travel_Agency.Repositories.Implementations; using Unity; namespace Travel_Agency.Forms diff --git a/Travel_Agency/Travel_Agency/Forms/FormContract.cs b/Travel_Agency/Travel_Agency/Forms/FormContract.cs index ff21c58..cb135e7 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormContract.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormContract.cs @@ -1,12 +1,4 @@ -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; + using Travel_Agency.Entities; using Travel_Agency.Repositories; diff --git a/Travel_Agency/Travel_Agency/Forms/FormContracts.cs b/Travel_Agency/Travel_Agency/Forms/FormContracts.cs index 39cdf96..723b502 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormContracts.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormContracts.cs @@ -1,14 +1,5 @@ -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; + using Travel_Agency.Repositories; -using Travel_Agency.Repositories.Implementations; using Unity; namespace Travel_Agency.Forms diff --git a/Travel_Agency/Travel_Agency/Forms/FormPayment.cs b/Travel_Agency/Travel_Agency/Forms/FormPayment.cs index ecbcbb0..09952f6 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormPayment.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormPayment.cs @@ -1,12 +1,4 @@ -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; + using Travel_Agency.Entities; using Travel_Agency.Repositories; @@ -44,11 +36,8 @@ namespace Travel_Agency.Forms MessageBox.Show(ex.Message, "Ошибка при сохранении", MessageBoxButtons.OK, MessageBoxIcon.Error); } - } private void ButtonCencel_Click(object sender, EventArgs e) => Close(); - - } } diff --git a/Travel_Agency/Travel_Agency/Forms/FormPayments.cs b/Travel_Agency/Travel_Agency/Forms/FormPayments.cs index 3dd2c6d..ba402d5 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormPayments.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormPayments.cs @@ -1,12 +1,4 @@ -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; + using Travel_Agency.Repositories; using Unity; diff --git a/Travel_Agency/Travel_Agency/Forms/FormRoute.cs b/Travel_Agency/Travel_Agency/Forms/FormRoute.cs index 5bd3f08..aab2980 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormRoute.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormRoute.cs @@ -1,15 +1,6 @@ -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; + using Travel_Agency.Entities; using Travel_Agency.Repositories; -using Travel_Agency.Repositories.Implementations; namespace Travel_Agency.Forms { diff --git a/Travel_Agency/Travel_Agency/Forms/FormRoutes.cs b/Travel_Agency/Travel_Agency/Forms/FormRoutes.cs index c328d9d..4650e2d 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormRoutes.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormRoutes.cs @@ -1,12 +1,4 @@ -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; + using Travel_Agency.Repositories; using Unity; @@ -110,6 +102,5 @@ namespace Travel_Agency.Forms Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value); return true; } - } } diff --git a/Travel_Agency/Travel_Agency/Forms/FormTour.cs b/Travel_Agency/Travel_Agency/Forms/FormTour.cs index e42bcd2..365b5ef 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormTour.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormTour.cs @@ -1,17 +1,7 @@ -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; -using Microsoft.VisualBasic.FileIO; + using Travel_Agency.Entities; using Travel_Agency.Entities.Enums; using Travel_Agency.Repositories; -using Travel_Agency.Repositories.Implementations; namespace Travel_Agency.Forms { diff --git a/Travel_Agency/Travel_Agency/Forms/FormTours.cs b/Travel_Agency/Travel_Agency/Forms/FormTours.cs index 3929c97..d487f47 100644 --- a/Travel_Agency/Travel_Agency/Forms/FormTours.cs +++ b/Travel_Agency/Travel_Agency/Forms/FormTours.cs @@ -1,14 +1,5 @@ -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; + using Travel_Agency.Repositories; -using Travel_Agency.Repositories.Implementations; using Unity; namespace Travel_Agency.Forms