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

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
{

View File

@ -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;
namespace SushiBarView
namespace SushiBar.Forms
{
public partial class FormComponent
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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