ПИбд-22 Боровков М В 1 лабораторная работа #1

Closed
bekodeg wants to merge 22 commits from labWork1 into main
19 changed files with 25 additions and 34 deletions
Showing only changes of commit ad66d408e3 - Show all commits

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
{