если б море было пивом...
This commit is contained in:
parent
6a305bb8df
commit
d418c821a1
31
ProjectFlowerShop/FormComponents.Designer.cs
generated
31
ProjectFlowerShop/FormComponents.Designer.cs
generated
@ -33,9 +33,6 @@
|
||||
buttonChange = new Button();
|
||||
buttonRemove = new Button();
|
||||
buttonReload = new Button();
|
||||
Id = new DataGridViewTextBoxColumn();
|
||||
Name = new DataGridViewTextBoxColumn();
|
||||
Price = new DataGridViewTextBoxColumn();
|
||||
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
@ -43,7 +40,6 @@
|
||||
//
|
||||
dataGridView.BackgroundColor = SystemColors.Control;
|
||||
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
dataGridView.Columns.AddRange(new DataGridViewColumn[] { Id, Name, Price });
|
||||
dataGridView.Location = new Point(1, 1);
|
||||
dataGridView.Name = "dataGridView";
|
||||
dataGridView.RowHeadersWidth = 51;
|
||||
@ -91,28 +87,6 @@
|
||||
buttonReload.UseVisualStyleBackColor = true;
|
||||
buttonReload.Click += buttonReload_Click;
|
||||
//
|
||||
// Id
|
||||
//
|
||||
Id.HeaderText = "Id";
|
||||
Id.MinimumWidth = 6;
|
||||
Id.Name = "Id";
|
||||
Id.Visible = false;
|
||||
Id.Width = 200;
|
||||
//
|
||||
// Name
|
||||
//
|
||||
Name.HeaderText = "Name";
|
||||
Name.MinimumWidth = 6;
|
||||
Name.Name = "Name";
|
||||
Name.Width = 380;
|
||||
//
|
||||
// Price
|
||||
//
|
||||
Price.HeaderText = "Price";
|
||||
Price.MinimumWidth = 6;
|
||||
Price.Name = "Price";
|
||||
Price.Width = 125;
|
||||
//
|
||||
// FormComponents
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
||||
@ -123,7 +97,7 @@
|
||||
Controls.Add(buttonChange);
|
||||
Controls.Add(buttonAdd);
|
||||
Controls.Add(dataGridView);
|
||||
//Name = "FormComponents";
|
||||
Name = "FormComponents";
|
||||
Text = "Компоненты";
|
||||
Load += FormComponents_Load;
|
||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||
@ -137,8 +111,5 @@
|
||||
private Button buttonChange;
|
||||
private Button buttonRemove;
|
||||
private Button buttonReload;
|
||||
private DataGridViewTextBoxColumn Id;
|
||||
private DataGridViewTextBoxColumn Name;
|
||||
private DataGridViewTextBoxColumn Price;
|
||||
}
|
||||
}
|
@ -117,13 +117,4 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
8
ProjectFlowerShop/FormFlowers.Designer.cs
generated
8
ProjectFlowerShop/FormFlowers.Designer.cs
generated
@ -1,4 +1,4 @@
|
||||
namespace IceCreamShop
|
||||
namespace ProjectFlowerShop
|
||||
{
|
||||
partial class FormFlowers
|
||||
{
|
||||
@ -85,7 +85,7 @@
|
||||
RefreshButton.UseVisualStyleBackColor = true;
|
||||
RefreshButton.Click += RefreshButton_Click;
|
||||
//
|
||||
// IceCreamsForm
|
||||
// FormFlowers
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
@ -95,8 +95,8 @@
|
||||
Controls.Add(UpdateButton);
|
||||
Controls.Add(AddButton);
|
||||
Controls.Add(DataGridView);
|
||||
Name = "IceCreamsForm";
|
||||
Text = "IceCreamsForm";
|
||||
Name = "FormFlowers";
|
||||
Text = "FlowersForm";
|
||||
Load += IceCreamsForm_Load;
|
||||
((System.ComponentModel.ISupportInitialize)DataGridView).EndInit();
|
||||
ResumeLayout(false);
|
||||
|
@ -12,7 +12,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace IceCreamShop
|
||||
namespace ProjectFlowerShop
|
||||
{
|
||||
public partial class FormFlowers : Form
|
||||
{
|
||||
@ -39,8 +39,8 @@ namespace IceCreamShop
|
||||
{
|
||||
DataGridView.DataSource = list;
|
||||
DataGridView.Columns["Id"].Visible = false;
|
||||
DataGridView.Columns["IceCreamName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
DataGridView.Columns["IceCreamComponents"].Visible = false;
|
||||
DataGridView.Columns["FlowerName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
DataGridView.Columns["FlowerComponents"].Visible = false;
|
||||
}
|
||||
_logger.LogInformation("Загрузка цветов");
|
||||
}
|
||||
|
2
ProjectFlowerShop/MainForm.Designer.cs
generated
2
ProjectFlowerShop/MainForm.Designer.cs
generated
@ -1,4 +1,4 @@
|
||||
namespace IceCreamShop
|
||||
namespace ProjectFlowerShop
|
||||
{
|
||||
partial class MainForm
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace IceCreamShop
|
||||
namespace ProjectFlowerShop
|
||||
{
|
||||
public partial class MainForm : Form
|
||||
{
|
||||
@ -51,8 +51,8 @@ namespace IceCreamShop
|
||||
if (list != null)
|
||||
{
|
||||
DataGridView.DataSource = list;
|
||||
DataGridView.Columns["IceCreamId"].Visible = false;
|
||||
DataGridView.Columns["IceCreamName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
DataGridView.Columns["FlowerId"].Visible = false;
|
||||
DataGridView.Columns["FlowerName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
}
|
||||
_logger.LogInformation("Загрузка заказов");
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ using FlowerShopBusinessLogic.BusinessLogic;
|
||||
using FlowerShopContracts.BusinessLogicsContracts;
|
||||
using FlowerShopContracts.StoragesContracts;
|
||||
using FlowerShopListImplement.Implements;
|
||||
using IceCreamShop;
|
||||
using ProjectFlowerShop;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using NLog.Extensions.Logging;
|
||||
|
Loading…
Reference in New Issue
Block a user