правка наймспейсов

This commit is contained in:
bekodeg 2024-02-13 21:56:03 +04:00
parent 9e84a378bf
commit ad66d408e3
19 changed files with 25 additions and 34 deletions

View File

@ -1,4 +1,4 @@
namespace SushiBarView namespace SushiBar.Forms
{ {
partial class FormComponent partial class FormComponent
{ {

View File

@ -1,14 +1,5 @@
using System; using System;
using System.Collections.Generic; namespace SushiBar.Forms
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SushiBarView
{ {
public partial class FormComponent public partial class FormComponent
{ {

View File

@ -3,7 +3,7 @@ using SushiBarContracts.BusinessLogicsContracts;
using SushiBarContracts.SearchModels; using SushiBarContracts.SearchModels;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace SushiBarView namespace SushiBar.Forms
{ {
public partial class FormComponent : Form public partial class FormComponent : Form
{ {

View File

@ -1,4 +1,4 @@
namespace SushiBarView namespace SushiBar.Forms
{ {
partial class FormComponents partial class FormComponents
{ {

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace SushiBarView namespace SushiBar.Forms
{ {
public partial class FormComponents public partial class FormComponents
{ {

View File

@ -1,9 +1,9 @@
using SushiBarContracts.BindingModels; using SushiBarContracts.BindingModels;
using SushiBarContracts.BusinessLogicsContracts; using SushiBarContracts.BusinessLogicsContracts;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using SushiView;
namespace SushiBar.Forms
namespace SushiBarView
{ {
public partial class FormComponents : Form public partial class FormComponents : Form
{ {

View File

@ -1,4 +1,4 @@
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
partial class FormCreateOrder partial class FormCreateOrder
{ {

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
public partial class FormCreateOrder public partial class FormCreateOrder
{ {

View File

@ -8,7 +8,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
public partial class FormCreateOrder : Form public partial class FormCreateOrder : Form
{ {

View File

@ -1,4 +1,4 @@
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
partial class FormMain partial class FormMain
{ {

View File

@ -1,4 +1,4 @@
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
public partial class FormMain public partial class FormMain
{ {

View File

@ -1,9 +1,10 @@
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using SushiBarContracts.BindingModels; using SushiBarContracts.BindingModels;
using SushiBarContracts.BusinessLogicsContracts; using SushiBarContracts.BusinessLogicsContracts;
using SushiView;
using System.Windows.Forms; using System.Windows.Forms;
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
public partial class FormMain : Form public partial class FormMain : Form
{ {

View File

@ -1,4 +1,4 @@
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
partial class FormSushi partial class FormSushi
{ {

View File

@ -1,4 +1,4 @@
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
public partial class FormSushi public partial class FormSushi
{ {

View File

@ -1,4 +1,4 @@
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
partial class FormSushiComponent partial class FormSushiComponent
{ {

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
public partial class FormSushiComponent public partial class FormSushiComponent
{ {

View File

@ -7,7 +7,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
partial class FormSushiComponent : Form partial class FormSushiComponent : Form
{ {

View File

@ -3,8 +3,9 @@ using SushiBarContracts.BindingModels;
using SushiBarContracts.BusinessLogicsContracts; using SushiBarContracts.BusinessLogicsContracts;
using SushiBarContracts.SearchModels; using SushiBarContracts.SearchModels;
using SushiBarDataModels.Models; using SushiBarDataModels.Models;
using SushiView;
namespace SushiBarView.Forms namespace SushiBar.Forms
{ {
public partial class FormSushi : Form public partial class FormSushi : Form
{ {
@ -64,14 +65,12 @@ namespace SushiBarView.Forms
catch (Exception ex) catch (Exception ex)
{ {
_logger.LogError(ex, "Ошибка загрузки компонент изделия"); _logger.LogError(ex, "Ошибка загрузки компонент изделия");
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBoxIcon.Error);
} }
} }
private void ButtonAdd_Click(object sender, EventArgs e) private void ButtonAdd_Click(object sender, EventArgs e)
{ {
var service = var service = Program.ServiceProvider?.GetService(typeof(FormSushiComponent));
Program.ServiceProvider?.GetService(typeof(FormSushiComponent));
if (service is FormSushiComponent form) if (service is FormSushiComponent form)
{ {

View File

@ -5,9 +5,9 @@ using SushiBarBusinessLogic.BusinessLogics;
using SushiBarContracts.BusinessLogicsContracts; using SushiBarContracts.BusinessLogicsContracts;
using SushiBarContracts.StoragesContracts; using SushiBarContracts.StoragesContracts;
using SushiBarListImplement.Implements; using SushiBarListImplement.Implements;
using SushiBarView.Forms; using SushiBar.Forms;
namespace SushiBarView namespace SushiView
{ {
internal static class Program internal static class Program
{ {