diff --git a/SewingDresses/SewingDressesBusinessLogic/BusinessLogic/ShopLogic.cs b/SewingDresses/SewingDressesBusinessLogic/BusinessLogic/ShopLogic.cs new file mode 100644 index 0000000..e52b504 --- /dev/null +++ b/SewingDresses/SewingDressesBusinessLogic/BusinessLogic/ShopLogic.cs @@ -0,0 +1,129 @@ +using Microsoft.Extensions.Logging; +using SewingDressesContracts.BindingModels; +using SewingDressesContracts.BusinessLogicsContracts; +using SewingDressesContracts.SearchModels; +using SewingDressesContracts.StoragesContracts; +using SewingDressesContracts.ViewModels; +using SewingDressesDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SewingDressesBusinessLogic.BusinessLogic +{ + public class ShopLogic : IShopLogic + { + private readonly ILogger _logger; + private readonly IShopStorage _shopStorage; + public ShopLogic(ILogger logger, IShopStorage shopStorage) + { + _logger = logger; + _shopStorage = shopStorage; + } + public List ReadList(ShopSearchModel model) + { + _logger.LogInformation("ReadList. ShopName:{Name}. Id:{ Id}", model?.Name, model?.Id); + var list = model == null ? _shopStorage.GetFullList() : _shopStorage.GetFilteredList(model); + if (list == null) + { + _logger.LogWarning("ReadList return null list"); + return null; + } + _logger.LogInformation("ReadList. Count:{Count}", list.Count); + return list; + } + public ShopViewModel ReadElement(ShopSearchModel model) + { + if (model == null) + { + throw new ArgumentNullException(nameof(model)); + } + _logger.LogInformation("ReadElement. ShopName:{ShopName}.Id:{ Id}", model.Name, model.Id); + var element = _shopStorage.GetElement(model); + if (element == null) + { + _logger.LogWarning("ReadElement element not found"); + return null; + } + _logger.LogInformation("ReadElement find. Id:{Id}", element.Id); + return element; + } + + public bool Create(ShopBindingModel model) + { + CheckModel(model); + if (_shopStorage.Insert(model) == null) + { + _logger.LogWarning("Insert operation failed"); + return false; + } + return true; + } + + public bool Update(ShopBindingModel model) + { + CheckModel(model); + if (_shopStorage.Update(model) == null) + { + _logger.LogWarning("Update operation failed"); + return false; + } + return true; + } + public bool Delete(ShopBindingModel model) + { + CheckModel(model, false); + _logger.LogInformation("Delete. Id:{Id}", model.Id); + if (_shopStorage.Delete(model) == null) + { + _logger.LogWarning("Delete operation failed"); + return false; + } + return true; + } + + private void CheckModel(ShopBindingModel model, bool withParams = true) + { + if (model == null) + { + throw new ArgumentNullException(nameof(model)); + } + if (!withParams) + { + return; + } + if (string.IsNullOrEmpty(model.ShopName)) + { + throw new ArgumentNullException("Нет названия магазина", + nameof(model.ShopName)); + } + if (string.IsNullOrEmpty(model.Adress)) + { + throw new ArgumentNullException("Нет адресса магазина", + nameof(model.ShopName)); + } + if (model.DateOpen == null) + { + throw new ArgumentNullException("Нет даты открытия магазина", + nameof(model.ShopName)); + } + _logger.LogInformation("Shop. ShopName:{ShopName}.Address:{Address}. DateOpen:{DateOpen}. Id: { Id}", model.ShopName, model.Adress, model.DateOpen, model.Id); + var element = _shopStorage.GetElement(new ShopSearchModel + { + Name = model.ShopName + }); + if (element != null && element.Id != model.Id) + { + throw new InvalidOperationException("Магазин с таким названием уже есть"); + } + } + public bool MakeSupply(ShopSearchModel model, IDressModel dress, int count) + { + if (model == null) + return false; + return _shopStorage.SupplyDress(model, dress, count); + } + } +} diff --git a/SewingDresses/SewingDressesContracts/BindingModels/ShopBindingModel.cs b/SewingDresses/SewingDressesContracts/BindingModels/ShopBindingModel.cs new file mode 100644 index 0000000..6ae5676 --- /dev/null +++ b/SewingDresses/SewingDressesContracts/BindingModels/ShopBindingModel.cs @@ -0,0 +1,18 @@ +using SewingDressesDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SewingDressesContracts.BindingModels +{ + public class ShopBindingModel : IShopModel + { + public int Id { get; set; } + public string ShopName { get; set; } + public string Adress { get; set; } + public DateTime DateOpen { get; set; } + public Dictionary ShopDresses { get; set; } = new(); + } +} diff --git a/SewingDresses/SewingDressesContracts/BusinessLogicsContracts/IShopLogic.cs b/SewingDresses/SewingDressesContracts/BusinessLogicsContracts/IShopLogic.cs new file mode 100644 index 0000000..56f29cc --- /dev/null +++ b/SewingDresses/SewingDressesContracts/BusinessLogicsContracts/IShopLogic.cs @@ -0,0 +1,22 @@ +using SewingDressesContracts.BindingModels; +using SewingDressesContracts.SearchModels; +using SewingDressesContracts.ViewModels; +using SewingDressesDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SewingDressesContracts.BusinessLogicsContracts +{ + public interface IShopLogic + { + List? ReadList(ShopSearchModel? model); + ShopViewModel? ReadElement(ShopSearchModel? model); + bool Create (ShopBindingModel? model); + bool Update (ShopBindingModel? model); + bool Delete (ShopBindingModel? model); + bool MakeSupply(ShopSearchModel model, IDressModel dress, int count); + } +} diff --git a/SewingDresses/SewingDressesContracts/SearchModels/ShopSearchModel.cs b/SewingDresses/SewingDressesContracts/SearchModels/ShopSearchModel.cs new file mode 100644 index 0000000..410d012 --- /dev/null +++ b/SewingDresses/SewingDressesContracts/SearchModels/ShopSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SewingDressesContracts.SearchModels +{ + public class ShopSearchModel + { + public int? Id { get; set; } + public string? Name { get; set; } + } +} diff --git a/SewingDresses/SewingDressesContracts/StoragesContracts/IShopStorage.cs b/SewingDresses/SewingDressesContracts/StoragesContracts/IShopStorage.cs new file mode 100644 index 0000000..5758bce --- /dev/null +++ b/SewingDresses/SewingDressesContracts/StoragesContracts/IShopStorage.cs @@ -0,0 +1,23 @@ +using SewingDressesContracts.BindingModels; +using SewingDressesContracts.SearchModels; +using SewingDressesContracts.ViewModels; +using SewingDressesDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SewingDressesContracts.StoragesContracts +{ + public interface IShopStorage + { + List GetFullList(); + List GetFilteredList(ShopSearchModel model); + ShopViewModel? GetElement(ShopSearchModel model); + ShopViewModel? Insert(ShopBindingModel model); + ShopViewModel? Update(ShopBindingModel model); + ShopViewModel? Delete(ShopBindingModel model); + bool SupplyDress(ShopSearchModel model, IDressModel dress, int count); + } +} diff --git a/SewingDresses/SewingDressesContracts/ViewModels/ShopViewModel.cs b/SewingDresses/SewingDressesContracts/ViewModels/ShopViewModel.cs new file mode 100644 index 0000000..0b22497 --- /dev/null +++ b/SewingDresses/SewingDressesContracts/ViewModels/ShopViewModel.cs @@ -0,0 +1,18 @@ +using SewingDressesDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SewingDressesContracts.ViewModels +{ + public class ShopViewModel : IShopModel + { + public int Id { get; set; } + public string ShopName { get; set; } = string.Empty; + public string Adress { get; set; } = string.Empty; + public DateTime DateOpen { get; set; } + public Dictionary ShopDresses { get; set; } = new(); + } +} diff --git a/SewingDresses/SewingDressesDataModels/Models/IShopModel.cs b/SewingDresses/SewingDressesDataModels/Models/IShopModel.cs new file mode 100644 index 0000000..a423ef5 --- /dev/null +++ b/SewingDresses/SewingDressesDataModels/Models/IShopModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SewingDressesDataModels.Models +{ + public interface IShopModel : IId + { + string ShopName { get; } + string Adress { get; } + DateTime DateOpen { get; } + } +} diff --git a/SewingDresses/SewingDressesListImplement/DataListSingleton.cs b/SewingDresses/SewingDressesListImplement/DataListSingleton.cs index 0bdf6ab..b89fe53 100644 --- a/SewingDresses/SewingDressesListImplement/DataListSingleton.cs +++ b/SewingDresses/SewingDressesListImplement/DataListSingleton.cs @@ -8,11 +8,13 @@ namespace SewingDressesListImplement public List Components { get; set; } public List Orders { get; set; } public List Dresses { get; set; } + public List Shops { get; set; } private DataListSingleton() { Components = new List(); Orders = new List(); Dresses = new List(); + Shops = new List(); } public static DataListSingleton GetInstance() { diff --git a/SewingDresses/SewingDressesListImplement/Implements/OrderStorage.cs b/SewingDresses/SewingDressesListImplement/Implements/OrderStorage.cs index 7201f57..ac8d62f 100644 --- a/SewingDresses/SewingDressesListImplement/Implements/OrderStorage.cs +++ b/SewingDresses/SewingDressesListImplement/Implements/OrderStorage.cs @@ -19,7 +19,7 @@ namespace SewingDressesListImplement.Implements var result = new List(); foreach (var order in _source.Orders) { - result.Add(order.GetViewModel); + result.Add(AcessDressesStorage(order.GetViewModel)); } return result; } @@ -31,7 +31,7 @@ namespace SewingDressesListImplement.Implements { if (order.Id == model.Id) { - result.Add(order.GetViewModel); + result.Add(AcessDressesStorage(order.GetViewModel)); } } return result; @@ -94,5 +94,17 @@ namespace SewingDressesListImplement.Implements } return null; } + public OrderViewModel AcessDressesStorage(OrderViewModel model) + { + foreach(var dress in _source.Dresses) + { + if (dress.Id == model.DressId) + { + model.DressName = dress.DressName; + break; + } + } + return model; + } } } diff --git a/SewingDresses/SewingDressesListImplement/Models/Shop.cs b/SewingDresses/SewingDressesListImplement/Models/Shop.cs new file mode 100644 index 0000000..9615b12 --- /dev/null +++ b/SewingDresses/SewingDressesListImplement/Models/Shop.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SewingDressesContracts.ViewModels; +using SewingDressesDataModels.Models; +using SewingDressesContracts.BindingModels; + +namespace SewingDressesListImplement.Models +{ + public class Shop : IShopModel + { + public int Id { get; private set; } + public string ShopName { get; private set; } + public string Adress { get; private set; } + public DateTime DateOpen { get; private set; } + public Dictionary ShopDresses { get; private set; } = new(); + } +} diff --git a/SewingDresses/SewingDressesView/ShopForm.Designer.cs b/SewingDresses/SewingDressesView/ShopForm.Designer.cs new file mode 100644 index 0000000..a07e403 --- /dev/null +++ b/SewingDresses/SewingDressesView/ShopForm.Designer.cs @@ -0,0 +1,39 @@ +namespace SewingDressesView +{ + partial class ShopForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "ShopForm"; + } + + #endregion + } +} \ No newline at end of file diff --git a/SewingDresses/SewingDressesView/ShopForm.cs b/SewingDresses/SewingDressesView/ShopForm.cs new file mode 100644 index 0000000..17fb65f --- /dev/null +++ b/SewingDresses/SewingDressesView/ShopForm.cs @@ -0,0 +1,20 @@ +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 SewingDressesView +{ + public partial class ShopForm : Form + { + public ShopForm() + { + InitializeComponent(); + } + } +} diff --git a/SewingDresses/SewingDressesView/ShopForm.resx b/SewingDresses/SewingDressesView/ShopForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SewingDresses/SewingDressesView/ShopForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SewingDresses/SewingDressesView/ShopsForm.Designer.cs b/SewingDresses/SewingDressesView/ShopsForm.Designer.cs new file mode 100644 index 0000000..91d7a47 --- /dev/null +++ b/SewingDresses/SewingDressesView/ShopsForm.Designer.cs @@ -0,0 +1,39 @@ +namespace SewingDressesView +{ + partial class ShopsForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "ShopsForm"; + } + + #endregion + } +} \ No newline at end of file diff --git a/SewingDresses/SewingDressesView/ShopsForm.cs b/SewingDresses/SewingDressesView/ShopsForm.cs new file mode 100644 index 0000000..a70e26e --- /dev/null +++ b/SewingDresses/SewingDressesView/ShopsForm.cs @@ -0,0 +1,20 @@ +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 SewingDressesView +{ + public partial class ShopsForm : Form + { + public ShopsForm() + { + InitializeComponent(); + } + } +} diff --git a/SewingDresses/SewingDressesView/ShopsForm.resx b/SewingDresses/SewingDressesView/ShopsForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SewingDresses/SewingDressesView/ShopsForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SewingDresses/SewingDressesView/SupplyForm.Designer.cs b/SewingDresses/SewingDressesView/SupplyForm.Designer.cs new file mode 100644 index 0000000..f74e507 --- /dev/null +++ b/SewingDresses/SewingDressesView/SupplyForm.Designer.cs @@ -0,0 +1,141 @@ +namespace SewingDressesView +{ + partial class SupplyForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + ShopComboBox = new ComboBox(); + DressComboBox = new ComboBox(); + CountTextBox = new TextBox(); + SaveButton = new Button(); + Cancel = new Button(); + label1 = new Label(); + label2 = new Label(); + label3 = new Label(); + SuspendLayout(); + // + // ShopComboBox + // + ShopComboBox.FormattingEnabled = true; + ShopComboBox.Location = new Point(155, 34); + ShopComboBox.Name = "ShopComboBox"; + ShopComboBox.Size = new Size(318, 28); + ShopComboBox.TabIndex = 0; + // + // DressComboBox + // + DressComboBox.FormattingEnabled = true; + DressComboBox.Location = new Point(155, 79); + DressComboBox.Name = "DressComboBox"; + DressComboBox.Size = new Size(318, 28); + DressComboBox.TabIndex = 1; + // + // CountTextBox + // + CountTextBox.Location = new Point(155, 128); + CountTextBox.Name = "CountTextBox"; + CountTextBox.Size = new Size(318, 27); + CountTextBox.TabIndex = 2; + // + // SaveButton + // + SaveButton.Location = new Point(252, 200); + SaveButton.Name = "SaveButton"; + SaveButton.Size = new Size(107, 36); + SaveButton.TabIndex = 3; + SaveButton.Text = "Сохранить"; + SaveButton.UseVisualStyleBackColor = true; + SaveButton.Click += SaveButton_Click; + // + // Cancel + // + Cancel.Location = new Point(365, 200); + Cancel.Name = "Cancel"; + Cancel.Size = new Size(108, 36); + Cancel.TabIndex = 4; + Cancel.Text = "Отмена"; + Cancel.UseVisualStyleBackColor = true; + Cancel.Click += CancelButton_Click; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new Point(40, 37); + label1.Name = "label1"; + label1.Size = new Size(69, 20); + label1.TabIndex = 5; + label1.Text = "Магазин"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new Point(40, 82); + label2.Name = "label2"; + label2.Size = new Size(58, 20); + label2.TabIndex = 6; + label2.Text = "Платье"; + // + // label3 + // + label3.AutoSize = true; + label3.Location = new Point(40, 131); + label3.Name = "label3"; + label3.Size = new Size(90, 20); + label3.TabIndex = 7; + label3.Text = "Количество"; + // + // SupplyForm + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(506, 260); + Controls.Add(label3); + Controls.Add(label2); + Controls.Add(label1); + Controls.Add(Cancel); + Controls.Add(SaveButton); + Controls.Add(CountTextBox); + Controls.Add(DressComboBox); + Controls.Add(ShopComboBox); + Name = "SupplyForm"; + Text = "SupplyForm"; + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private ComboBox ShopComboBox; + private ComboBox DressComboBox; + private TextBox CountTextBox; + private Button SaveButton; + private Button Cancel; + private Label label1; + private Label label2; + private Label label3; + } +} \ No newline at end of file diff --git a/SewingDresses/SewingDressesView/SupplyForm.cs b/SewingDresses/SewingDressesView/SupplyForm.cs new file mode 100644 index 0000000..1542093 --- /dev/null +++ b/SewingDresses/SewingDressesView/SupplyForm.cs @@ -0,0 +1,149 @@ +using SewingDressesContracts.BusinessLogicsContracts; +using SewingDressesContracts.SearchModels; +using SewingDressesContracts.ViewModels; +using SewingDressesDataModels.Models; +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 SewingDressesView +{ + public partial class SupplyForm : Form + { + private readonly List? _dressList; + private readonly List? _shopsList; + IShopLogic _shopLogic; + IDressLogic _dressLogic; + public int ShopId + { + get + { + return Convert.ToInt32(ShopComboBox.SelectedValue); + } + set + { + ShopComboBox.SelectedValue = value; + } + } + public int DressId + { + get + { + return Convert.ToInt32(DressComboBox.SelectedValue); + } + set + { + DressComboBox.SelectedValue = value; + } + } + + public IDressModel? DressModel + { + get + { + if (_dressList == null) + { + return null; + } + foreach (var elem in _dressList) + { + if (elem.Id == DressId) + { + return elem; + } + } + return null; + } + } + + + public int Count + { + get { return Convert.ToInt32(CountTextBox.Text); } + set + { CountTextBox.Text = value.ToString(); } + } + public SupplyForm(IDressLogic dressLogic, IShopLogic shopLogic) + { + InitializeComponent(); + _shopLogic = shopLogic; + _dressLogic = dressLogic; + _dressList = dressLogic.ReadList(null); + _shopsList = shopLogic.ReadList(null); + if (_dressList != null) + { + DressComboBox.DisplayMember = "DressName"; + DressComboBox.ValueMember = "Id"; + DressComboBox.DataSource = _dressList; + DressComboBox.SelectedItem = null; + } + if (_shopsList != null) + { + ShopComboBox.DisplayMember = "ShopName"; + ShopComboBox.ValueMember = "Id"; + ShopComboBox.DataSource = _shopsList; + ShopComboBox.SelectedItem = null; + } + } + + private void SaveButton_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(CountTextBox.Text)) + { + MessageBox.Show("Заполните поле Количество", "Ошибка", + MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + if (DressComboBox.SelectedValue == null) + { + MessageBox.Show("Выберите мороженное", "Ошибка", + MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + if (ShopComboBox.SelectedValue == null) + { + MessageBox.Show("Выберите магазин", "Ошибка", + MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + + try + { + int count = Convert.ToInt32(CountTextBox.Text); + + bool res = _shopLogic.MakeSupply( + new ShopSearchModel() { Id = Convert.ToInt32(ShopComboBox.SelectedValue) }, + _dressLogic.ReadElement(new() { Id = Convert.ToInt32(DressComboBox.SelectedValue) }), + count + ); + + if (!res) + { + throw new Exception("Ошибка при пополнении. Дополнительная информация в логах"); + } + + MessageBox.Show("Пополнение прошло успешно"); + DialogResult = DialogResult.OK; + Close(); + + } + catch (Exception er) + { + MessageBox.Show("Ошибка пополнения"); + return; + } + } + + private void CancelButton_Click(object sender, EventArgs e) + { + DialogResult = DialogResult.Cancel; + Close(); + } + } +} diff --git a/SewingDresses/SewingDressesView/SupplyForm.resx b/SewingDresses/SewingDressesView/SupplyForm.resx new file mode 100644 index 0000000..af32865 --- /dev/null +++ b/SewingDresses/SewingDressesView/SupplyForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file