фиксы + конфликты

This commit is contained in:
sardq 2024-05-16 17:37:12 +04:00
parent 3c7fd1b8f0
commit ecf2e10885
14 changed files with 83 additions and 343 deletions

View File

@ -14,11 +14,8 @@ namespace PlumbingRepairContracts.BindingModels
public string Subject { get; set; } = string.Empty;
public string Body { get; set; } = string.Empty;
<<<<<<< HEAD
public bool IsRead { get; set; } = false;
public string? ReplyText { get; set; } = string.Empty;
=======
public int Id => throw new NotImplementedException();
>>>>>>> lab_8
}
}

View File

@ -6,23 +6,6 @@ namespace PlumbingRepairContracts.ViewModels
{
public class MessageInfoViewModel : IMessageInfoModel
{
<<<<<<< HEAD
public string MessageId { get; set; } = string.Empty;
public int? ClientId { get; set; }
[DisplayName("Отправитель")]
public string SenderName { get; set; } = string.Empty;
[DisplayName("Дата отправления")]
public DateTime DateDelivery { get; set; }
[DisplayName("Заголовок")]
public string Subject { get; set; } = string.Empty;
[DisplayName("Текст")]
public string Body { get; set; } = string.Empty;
[DisplayName("Прочитано")]
public bool IsRead { get; set; } = false;
[DisplayName("Ответ")]
public string? ReplyText { get; set; }
=======
[Column(visible: false)]
public string MessageId { get; set; } = string.Empty;
[Column(visible: false)]
@ -35,8 +18,11 @@ namespace PlumbingRepairContracts.ViewModels
public string Subject { get; set; } = string.Empty;
[Column(title: "Текст", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string Body { get; set; } = string.Empty;
[Column(title: "Прочитано", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public bool IsRead { get; set; } = false;
[Column(title: "Ответ", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string? ReplyText { get; set; }
[Column(visible: false)]
public int Id => throw new NotImplementedException();
>>>>>>> lab_8
}
}

View File

@ -9,12 +9,7 @@ namespace PlumbingRepairDataModels.Models
DateTime DateDelivery { get; }
string Subject { get; }
string Body { get; }
<<<<<<< HEAD
bool IsRead { get; }
string? ReplyText { get; }
}
=======
}
>>>>>>> lab_8
}

View File

@ -15,6 +15,7 @@ namespace PlumbingRepairDatabaseImplement
DependencyManager.Instance.RegisterType<IMessageInfoStorage, MessageInfoStorage>();
DependencyManager.Instance.RegisterType<IOrderStorage, OrderStorage>();
DependencyManager.Instance.RegisterType<IWorkStorage, WorkStorage>();
DependencyManager.Instance.RegisterType<IShopStorage, ShopStorage>();
DependencyManager.Instance.RegisterType<IBackUpInfo, BackUpInfo>();
}
}

View File

@ -25,16 +25,15 @@ namespace PlumbingRepairDatabaseImplement.Models
[DataMember]
public string Subject { get; set; } = string.Empty;
[Required]
<<<<<<< HEAD
public string Body { get; set; } = string.Empty;
[Required]
public bool IsRead { get; private set; } = false;
public string? ReplyText { get; private set; }
=======
[DataMember]
public string Body { get; set; } = string.Empty;
[Required]
[DataMember]
public bool IsRead { get; private set; } = false;
[DataMember]
public string? ReplyText { get; private set; }
public virtual Client? Client { get; set; }
>>>>>>> lab_8
public static MessageInfo? Create(MessageInfoBindingModel model)
{
@ -65,14 +64,10 @@ namespace PlumbingRepairDatabaseImplement.Models
MessageId = MessageId,
SenderName = SenderName,
DateDelivery = DateDelivery,
<<<<<<< HEAD
IsRead = IsRead,
ReplyText = ReplyText
};
}
=======
};
public int Id => throw new NotImplementedException();
}
>>>>>>> lab_8
}

View File

@ -15,6 +15,7 @@ namespace BlacksmithWorkshopFileImplement
DependencyManager.Instance.RegisterType<IMessageInfoStorage, MessageInfoStorage>();
DependencyManager.Instance.RegisterType<IOrderStorage, OrderStorage>();
DependencyManager.Instance.RegisterType<IWorkStorage, WorkStorage>();
DependencyManager.Instance.RegisterType<IShopStorage, ShopStorage>();
DependencyManager.Instance.RegisterType<IBackUpInfo, BackUpInfo>();
}
}

View File

@ -9,34 +9,25 @@ namespace PlumbingRepairFileImplement.Models
[DataContract]
internal class MessageInfo : IMessageInfoModel
{
<<<<<<< HEAD
[DataMember]
public string MessageId { get; private set; } = string.Empty;
[DataMember]
public int? ClientId { get; private set; }
[DataMember]
public string SenderName { get; private set; } = string.Empty;
[DataMember]
public DateTime DateDelivery { get; private set; } = DateTime.Now;
[DataMember]
public string Subject { get; private set; } = string.Empty;
[DataMember]
public string Body { get; private set; } = string.Empty;
[DataMember]
public bool IsRead { get; private set; } = false;
[DataMember]
public string? ReplyText { get; private set; }
=======
[DataMember]
public string MessageId { get; private set; } = string.Empty;
[DataMember]
public int? ClientId { get; private set; }
[DataMember]
public string SenderName { get; private set; } = string.Empty;
[DataMember]
public DateTime DateDelivery { get; private set; } = DateTime.Now;
[DataMember]
public string Subject { get; private set; } = string.Empty;
[DataMember]
public string Body { get; private set; } = string.Empty;
>>>>>>> lab_8
public static MessageInfo? Create(MessageInfoBindingModel model)
{

View File

@ -16,6 +16,7 @@ namespace PlumbingRepairListImplement
DependencyManager.Instance.RegisterType<IMessageInfoStorage, MessageInfoStorage>();
DependencyManager.Instance.RegisterType<IOrderStorage, OrderStorage>();
DependencyManager.Instance.RegisterType<IWorkStorage, WorkStorage>();
DependencyManager.Instance.RegisterType<IShopStorage, ShopStorage>();
DependencyManager.Instance.RegisterType<IBackUpInfo, BackUpInfo>();
}
}

View File

@ -10,31 +10,22 @@ namespace PlumbingRepairListImplement.Models
{
[DataMember]
public string MessageId { get; private set; } = string.Empty;
<<<<<<< HEAD
[DataMember]
public int? ClientId { get; private set; }
[DataMember]
public string SenderName { get; private set; } = string.Empty;
[DataMember]
public DateTime DateDelivery { get; private set; } = DateTime.Now;
[DataMember]
public string Subject { get; private set; } = string.Empty;
[DataMember]
public string Body { get; private set; } = string.Empty;
[DataMember]
public bool IsRead { get; private set; } = false;
[DataMember]
public string? ReplyText { get; private set; }
=======
[DataMember]
public int? ClientId { get; private set; }
[DataMember]
public string SenderName { get; private set; } = string.Empty;
[DataMember]
public DateTime DateDelivery { get; private set; } = DateTime.Now;
[DataMember]
public string Subject { get; private set; } = string.Empty;
[DataMember]
public string Body { get; private set; } = string.Empty;
>>>>>>> lab_8
public static MessageInfo? Create(MessageInfoBindingModel model)
{
@ -66,14 +57,9 @@ namespace PlumbingRepairListImplement.Models
MessageId = MessageId,
SenderName = SenderName,
DateDelivery = DateDelivery,
<<<<<<< HEAD
IsRead = IsRead,
ReplyText = ReplyText
};
}
=======
};
public int Id => throw new NotImplementedException();
}
>>>>>>> lab_8
}

View File

@ -1,5 +1,6 @@
using Microsoft.Extensions.Logging;
using PlumbingRepairContracts.BusinessLogicsContracts;
using PlumbingRepairContracts.DI;
namespace PlumbingRepairView
{
@ -23,20 +24,8 @@ namespace PlumbingRepairView
{
try
{
<<<<<<< HEAD
var list = _logic.ReadList(new() { Page = page, PageSize = pageSize });
if (list != null)
{
dataGridView.DataSource = list;
dataGridView.Columns["ClientId"].Visible = false;
dataGridView.Columns["MessageId"].Visible = false;
dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
}
_logger.LogInformation("Загрузка сообщений");
=======
dataGridView.FillAndConfigGrid(_logic.ReadList(null));
_logger.LogInformation("Loading mails");
>>>>>>> lab_8
_logger.LogInformation("Загрузка сообщений");
}
catch (Exception ex)
{
@ -61,13 +50,8 @@ namespace PlumbingRepairView
{
if (dataGridView.SelectedRows.Count == 1)
{
var service = Program.ServiceProvider?.GetService(typeof(FormMail));
if (service is FormMail form)
{
form.Id = dataGridView.SelectedRows[0].Cells["MessageId"].Value.ToString();
var form = DependencyManager.Instance.Resolve<FormMail>();
form.ShowDialog();
LoadData(0);
}
}
}

View File

@ -50,11 +50,7 @@
this.выполнениеРаботToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.списокВсехЗаказовToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.письмаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
<<<<<<< HEAD
this.письмаToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
=======
this.созданиеБэкапаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
>>>>>>> lab_8
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
@ -122,12 +118,8 @@
this.справочникиToolStripMenuItem,
this.отчетыToolStripMenuItem,
this.выполнениеРаботToolStripMenuItem,
<<<<<<< HEAD
this.письмаToolStripMenuItem1});
=======
this.письмаToolStripMenuItem,
this.созданиеБэкапаToolStripMenuItem});
>>>>>>> lab_8
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(1377, 33);
@ -151,22 +143,14 @@
// компонентыToolStripMenuItem
//
this.компонентыToolStripMenuItem.Name = омпонентыToolStripMenuItem";
<<<<<<< HEAD
this.компонентыToolStripMenuItem.Size = new System.Drawing.Size(296, 34);
=======
this.компонентыToolStripMenuItem.Size = new System.Drawing.Size(220, 34);
>>>>>>> lab_8
this.компонентыToolStripMenuItem.Text = "Компоненты";
this.компонентыToolStripMenuItem.Click += new System.EventHandler(this.КомпонентыToolStripMenuItem_Click);
//
// РаботыToolStripMenuItem
//
this.РаботыToolStripMenuItem.Name = "РаботыToolStripMenuItem";
<<<<<<< HEAD
this.РаботыToolStripMenuItem.Size = new System.Drawing.Size(296, 34);
=======
this.РаботыToolStripMenuItem.Size = new System.Drawing.Size(220, 34);
>>>>>>> lab_8
this.РаботыToolStripMenuItem.Text = "Работы";
this.РаботыToolStripMenuItem.Click += new System.EventHandler(this.РаботыToolStripMenuItem_Click);
//
@ -194,22 +178,14 @@
// клиентыToolStripMenuItem
//
this.клиентыToolStripMenuItem.Name = "клиентыToolStripMenuItem";
<<<<<<< HEAD
this.клиентыToolStripMenuItem.Size = new System.Drawing.Size(296, 34);
=======
this.клиентыToolStripMenuItem.Size = new System.Drawing.Size(220, 34);
>>>>>>> lab_8
this.клиентыToolStripMenuItem.Text = "Клиенты";
this.клиентыToolStripMenuItem.Click += new System.EventHandler(this.клиентыToolStripMenuItem_Click);
//
// исполнителиToolStripMenuItem
//
this.исполнителиToolStripMenuItem.Name = сполнителиToolStripMenuItem";
<<<<<<< HEAD
this.исполнителиToolStripMenuItem.Size = new System.Drawing.Size(296, 34);
=======
this.исполнителиToolStripMenuItem.Size = new System.Drawing.Size(220, 34);
>>>>>>> lab_8
this.исполнителиToolStripMenuItem.Text = "Исполнители";
this.исполнителиToolStripMenuItem.Click += new System.EventHandler(this.исполнителиToolStripMenuItem_Click);
//
@ -281,21 +257,12 @@
this.письмаToolStripMenuItem.Text = "Письма";
this.письмаToolStripMenuItem.Click += new System.EventHandler(this.письмаToolStripMenuItem_Click);
//
<<<<<<< HEAD
// письмаToolStripMenuItem1
//
this.письмаToolStripMenuItem1.Name = "письмаToolStripMenuItem1";
this.письмаToolStripMenuItem1.Size = new System.Drawing.Size(90, 29);
this.письмаToolStripMenuItem1.Text = "Письма";
this.письмаToolStripMenuItem1.Click += new System.EventHandler(this.письмаToolStripMenuItem_Click);
=======
// созданиеБэкапаToolStripMenuItem
//
this.созданиеБэкапаToolStripMenuItem.Name = "созданиеБэкапаToolStripMenuItem";
this.созданиеБэкапаToolStripMenuItem.Size = new System.Drawing.Size(166, 29);
this.созданиеБэкапаToolStripMenuItem.Text = "Создание бэкапа";
this.созданиеБэкапаToolStripMenuItem.Click += new System.EventHandler(this.backupToolStripMenuItem_Click);
>>>>>>> lab_8
//
// FormMain
//
@ -343,10 +310,6 @@
private ToolStripMenuItem выполнениеРаботToolStripMenuItem;
private ToolStripMenuItem исполнителиToolStripMenuItem;
private ToolStripMenuItem письмаToolStripMenuItem;
<<<<<<< HEAD
private ToolStripMenuItem письмаToolStripMenuItem1;
=======
private ToolStripMenuItem созданиеБэкапаToolStripMenuItem;
>>>>>>> lab_8
}
}

View File

@ -10,16 +10,11 @@ namespace PlumbingRepairView
public partial class FormMain : Form
{
private readonly ILogger _logger;
private readonly IOrderLogic _orderLogic;
private readonly IReportLogic _reportLogic;
private readonly IWorkProcess _workProcess;
<<<<<<< HEAD
public FormMain(ILogger<FormMain> logger, IOrderLogic orderLogic, IReportLogic reportLogic, IWorkProcess workProcess)
=======
private readonly IBackUpLogic _backUpLogic;
public FormMain(ILogger<FormMain> logger, IOrderLogic orderLogic, IReportLogic reportLogic, IWorkProcess workProcess, IBackUpLogic backUpLogic)
>>>>>>> lab_8
{
InitializeComponent();
_logger = logger;
@ -38,19 +33,8 @@ namespace PlumbingRepairView
{
try
{
<<<<<<< HEAD
var list = _orderLogic.ReadList(null);
if (list != null)
{
dataGridView.DataSource = list;
dataGridView.Columns["Id"].Visible = false;
dataGridView.Columns["ImplementerId"].Visible = false;
}
_logger.LogInformation("Загрузка заказов");
=======
dataGridView.FillAndConfigGrid(_orderLogic.ReadList(null));
_logger.LogInformation("Загрузка заказов");
>>>>>>> lab_8
}
catch (Exception ex)
{
@ -68,38 +52,24 @@ namespace PlumbingRepairView
private void РаботыToolStripMenuItem_Click(object sender, EventArgs e)
{
<<<<<<< HEAD
var service = Program.ServiceProvider?.GetService(typeof(FormWorks));
if (service is FormWorks form)
{
var form = DependencyManager.Instance.Resolve<FormWorks>();
form.ShowDialog();
}
}
private void магазиныToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormShops));
if (service is FormShops form)
{
var form = DependencyManager.Instance.Resolve<FormShops>();
form.ShowDialog();
}
}
private void пополнениеToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormStoreReplenishment));
if (service is FormStoreReplenishment form)
{
var form = DependencyManager.Instance.Resolve<FormStoreReplenishment>();
form.ShowDialog();
}
}
private void ButtonCreateOrder_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormCreateOrder));
if (service is FormCreateOrder form)
{
var form = DependencyManager.Instance.Resolve<FormCreateOrder>();
form.ShowDialog();
LoadData();
}
}
@ -134,25 +104,11 @@ namespace PlumbingRepairView
private void продажаРаботToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormSellWorks));
if (service is FormSellWorks form)
{
var form = DependencyManager.Instance.Resolve<FormSellWorks>();
form.ShowDialog();
}
}
private void списокКомпонентовToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void ComponentsToolStripMenuItem_Click(object sender, EventArgs e)
=======
var form = DependencyManager.Instance.Resolve<FormWorks>();
form.ShowDialog();
}
private void ComponentsToolStripMenuItem_Click(object sender, EventArgs
e)
>>>>>>> lab_8
{
using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
if (dialog.ShowDialog() == DialogResult.OK)
@ -165,22 +121,16 @@ e)
MessageBoxIcon.Information);
}
}
private void ComponentWorksToolStripMenuItem_Click(object sender,
EventArgs e)
private void ComponentWorksToolStripMenuItem_Click(object sender, EventArgs e)
{
var form = DependencyManager.Instance.Resolve<FormReportWorkComponents>();
form.ShowDialog();
}
private void OrdersToolStripMenuItem_Click(object sender, EventArgs e)
{
<<<<<<< HEAD
var service =
Program.ServiceProvider?.GetService(typeof(FormReportOrders));
if (service is FormReportOrders form)
{
var form = DependencyManager.Instance.Resolve<FormReportOrders>();
form.ShowDialog();
}
}
private void ShopsToolStripMenuItem_Click(object sender, EventArgs e)
{
using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
@ -194,67 +144,23 @@ e)
MessageBoxIcon.Information);
}
}
private void ShopWorksToolStripMenuItem_Click(object sender,
EventArgs e)
{
var service =
Program.ServiceProvider?.GetService(typeof(FormReportShopWorks));
if (service is FormReportShopWorks form)
private void ShopWorksToolStripMenuItem_Click(object sender, EventArgs e)
{
var form = DependencyManager.Instance.Resolve<FormReportShopWorks>();
form.ShowDialog();
}
}
private void OrdersByDateToolStripMenuItem_Click(object sender, EventArgs e)
=======
var form = DependencyManager.Instance.Resolve<FormReportOrders>();
{
var form = DependencyManager.Instance.Resolve<FormReportOrdersByDate>();
form.ShowDialog();
}
private void ButtonCreateOrder_Click(object sender, EventArgs e)
{
var form = DependencyManager.Instance.Resolve<FormCreateOrder>();
form.ShowDialog();
LoadData();
}
private void ButtonIssuedOrder_Click(object sender, EventArgs e)
>>>>>>> lab_8
{
var service =
Program.ServiceProvider?.GetService(typeof(FormReportOrdersByDate));
if (service is FormReportOrdersByDate form)
{
form.ShowDialog();
}
}
private void клиентыToolStripMenuItem_Click(object sender, EventArgs e)
{
<<<<<<< HEAD
var service =
Program.ServiceProvider?.GetService(typeof(FormClients));
if (service is FormClients form)
{
form.ShowDialog();
}
}
private void выполнениеРаботToolStripMenuItem_Click(object sender, EventArgs e)
=======
var form = DependencyManager.Instance.Resolve<FormClients>();
form.ShowDialog();
}
private void исполнителиToolStripMenuItem_Click(object sender, EventArgs e)
{
var form = DependencyManager.Instance.Resolve<FormImplementers>();
form.ShowDialog();
}
private void ЗапускРаботToolStripMenuItem_Click(object sender, EventArgs
e)
>>>>>>> lab_8
private void выполнениеРаботToolStripMenuItem_Click(object sender, EventArgs e)
{
_workProcess.DoWork((DependencyManager.Instance.Resolve<IImplementerLogic>() as IImplementerLogic)!, _orderLogic);
MessageBox.Show("Процесс обработки запущен", "Сообщение",
@ -263,12 +169,9 @@ e)
private void исполнителиToolStripMenuItem_Click(object sender, EventArgs e)
{
var service =
Program.ServiceProvider?.GetService(typeof(FormImplementers));
if (service is FormImplementers form)
{
var form = DependencyManager.Instance.Resolve<FormImplementers>();
form.ShowDialog();
}
}
private void письмаToolStripMenuItem_Click(object sender, EventArgs e)
{

View File

@ -1,6 +1,7 @@
using Microsoft.Extensions.Logging;
using PlumbingRepairContracts.BindingModels;
using PlumbingRepairContracts.BusinessLogicsContracts;
using PlumbingRepairContracts.DI;
namespace PlumbingRepairView
{
@ -46,21 +47,16 @@ namespace PlumbingRepairView
private void ButtonAdd_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormShop));
if (service is FormShop form)
{
if (form.ShowDialog() == DialogResult.OK)
{
LoadData();
}
}
var form = DependencyManager.Instance.Resolve<FormShop>();
form.ShowDialog();
}
private void ButtonUpd_Click(object sender, EventArgs e)
{
if (dataGridView.SelectedRows.Count == 1)
{
var service = Program.ServiceProvider?.GetService(typeof(FormShop));
var service = DependencyManager.Instance.Resolve<FormShop>();
if (service is FormShop form)
{
form.Id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value);

View File

@ -46,67 +46,7 @@ namespace PlumbingRepairView
var logger = DependencyManager.Instance.Resolve<ILogger>();
logger?.LogError(ex, "Îøèáêà ðàáîòû ñ ïî÷òîé");
}
<<<<<<< HEAD
Application.Run(_serviceProvider.GetRequiredService<FormMain>());
}
private static void MailCheck(object obj) => ServiceProvider?.GetService<AbstractMailWorker>()?.MailCheck();
private static void ConfigureServices(ServiceCollection services)
{
services.AddLogging(option =>
{
option.SetMinimumLevel(LogLevel.Information);
option.AddNLog("nlog.config");
});
services.AddTransient<IComponentStorage, ComponentStorage>();
services.AddTransient<IOrderStorage, OrderStorage>();
services.AddTransient<IWorkStorage, WorkStorage>();
services.AddTransient<IShopStorage, ShopStorage>();
services.AddTransient<IClientStorage, ClientStorage>();
services.AddTransient<IImplementerStorage, ImplementerStorage>();
services.AddTransient<IMessageInfoStorage, MessageInfoStorage>();
services.AddTransient<IComponentLogic, ComponentLogic>();
services.AddTransient<IOrderLogic, OrderLogic>();
services.AddTransient<IWorkLogic, WorkLogic>();
services.AddTransient<IShopLogic, ShopLogic>();
services.AddTransient<IReportLogic, ReportLogic>();
services.AddTransient<IClientLogic, ClientLogic>();
services.AddTransient<IImplementerLogic, ImplementerLogic>();
services.AddTransient<IWorkProcess, WorkModeling>();
services.AddTransient<IMessageInfoLogic, MessageInfoLogic>();
services.AddTransient<AbstractSaveToExcel, SaveToExcel>();
services.AddTransient<AbstractSaveToWord, SaveToWord>();
services.AddTransient<AbstractSaveToPdf, SaveToPdf>();
services.AddSingleton<AbstractMailWorker, MailKitWorker>();
services.AddTransient<FormReportOrders>();
services.AddTransient<FormReportWorkComponents>();
services.AddTransient<FormMain>();
services.AddTransient<FormComponent>();
services.AddTransient<FormComponents>();
services.AddTransient<FormCreateOrder>();
services.AddTransient<FormWork>();
services.AddTransient<FormWorks>();
services.AddTransient<FormShop>();
services.AddTransient<FormShops>();
services.AddTransient<FormWorkComponent>();
services.AddTransient<FormStoreReplenishment>();
services.AddTransient<FormSellWorks>();
services.AddTransient<FormReportOrders>();
services.AddTransient<FormReportOrdersByDate>();
services.AddTransient<FormReportWorkComponents>();
services.AddTransient<FormReportShopWorks>();
services.AddTransient<FormClients>();
services.AddTransient<FormImplementer>();
services.AddTransient<FormImplementers>();
services.AddTransient<FormMails>();
services.AddTransient<FormMail>();
=======
Application.Run(DependencyManager.Instance.Resolve<FormMain>());
>>>>>>> lab_8
}
private static void InitDependency()
{
@ -123,6 +63,7 @@ namespace PlumbingRepairView
DependencyManager.Instance.RegisterType<IWorkLogic, WorkLogic>();
DependencyManager.Instance.RegisterType<IReportLogic, ReportLogic>();
DependencyManager.Instance.RegisterType<IClientLogic, ClientLogic>();
DependencyManager.Instance.RegisterType<IShopLogic, ShopLogic>();
DependencyManager.Instance.RegisterType<IImplementerLogic, ImplementerLogic>();
DependencyManager.Instance.RegisterType<IMessageInfoLogic, MessageInfoLogic>();