ПИбд-22 Боровков М В 1 лабораторная работа #1
@ -1,4 +1,4 @@
|
|||||||
namespace SushiBarView
|
namespace SushiBar.Forms
|
||||||
{
|
{
|
||||||
partial class FormComponent
|
partial class FormComponent
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace SushiBarView
|
namespace SushiBar.Forms
|
||||||
{
|
{
|
||||||
partial class FormComponents
|
partial class FormComponents
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace SushiBarView.Forms
|
namespace SushiBar.Forms
|
||||||
{
|
{
|
||||||
partial class FormCreateOrder
|
partial class FormCreateOrder
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
2
SushiBar/SushiBar/Forms/FormMain.Designer.cs
generated
2
SushiBar/SushiBar/Forms/FormMain.Designer.cs
generated
@ -1,4 +1,4 @@
|
|||||||
namespace SushiBarView.Forms
|
namespace SushiBar.Forms
|
||||||
{
|
{
|
||||||
partial class FormMain
|
partial class FormMain
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace SushiBarView.Forms
|
namespace SushiBar.Forms
|
||||||
{
|
{
|
||||||
public partial class FormMain
|
public partial class FormMain
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
2
SushiBar/SushiBar/Forms/FormSushi.Designer.cs
generated
2
SushiBar/SushiBar/Forms/FormSushi.Designer.cs
generated
@ -1,4 +1,4 @@
|
|||||||
namespace SushiBarView.Forms
|
namespace SushiBar.Forms
|
||||||
{
|
{
|
||||||
partial class FormSushi
|
partial class FormSushi
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace SushiBarView.Forms
|
namespace SushiBar.Forms
|
||||||
{
|
{
|
||||||
public partial class FormSushi
|
public partial class FormSushi
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace SushiBarView.Forms
|
namespace SushiBar.Forms
|
||||||
{
|
{
|
||||||
partial class FormSushiComponent
|
partial class FormSushiComponent
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user