сдвиг нумерика

This commit is contained in:
ityurner02@mail.ru 2023-03-31 17:32:24 +04:00
parent be0302ba63
commit 6ffc6eee95
2 changed files with 122 additions and 172 deletions

View File

@ -28,161 +28,171 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.StoreNameLabel = new System.Windows.Forms.Label(); StoreNameLabel = new Label();
this.StoreAdressLabel = new System.Windows.Forms.Label(); StoreAdressLabel = new Label();
this.OpeningDateLabel = new System.Windows.Forms.Label(); OpeningDateLabel = new Label();
this.NameTextBox = new System.Windows.Forms.TextBox(); NameTextBox = new TextBox();
this.AdressTextBox = new System.Windows.Forms.TextBox(); AdressTextBox = new TextBox();
this.DataGridView = new System.Windows.Forms.DataGridView(); DataGridView = new DataGridView();
this.WorkName = new System.Windows.Forms.DataGridViewTextBoxColumn(); WorkName = new DataGridViewTextBoxColumn();
this.WorkPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); WorkPrice = new DataGridViewTextBoxColumn();
this.WorkCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); WorkCount = new DataGridViewTextBoxColumn();
this.SaveButton = new System.Windows.Forms.Button(); SaveButton = new Button();
this.ButtonCancel = new System.Windows.Forms.Button(); ButtonCancel = new Button();
this.OpeningDatePicker = new System.Windows.Forms.DateTimePicker(); OpeningDatePicker = new DateTimePicker();
this.VolumeNumericUpDown = new System.Windows.Forms.NumericUpDown(); VolumeNumericUpDown = new NumericUpDown();
this.WorkMaxCountLable = new System.Windows.Forms.Label(); WorkMaxCountLable = new Label();
((System.ComponentModel.ISupportInitialize)(this.DataGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)DataGridView).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.VolumeNumericUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)VolumeNumericUpDown).BeginInit();
this.SuspendLayout(); SuspendLayout();
// //
// StoreNameLabel // StoreNameLabel
// //
this.StoreNameLabel.AutoSize = true; StoreNameLabel.AutoSize = true;
this.StoreNameLabel.Location = new System.Drawing.Point(12, 9); StoreNameLabel.Location = new Point(14, 12);
this.StoreNameLabel.Name = "StoreNameLabel"; StoreNameLabel.Name = "StoreNameLabel";
this.StoreNameLabel.Size = new System.Drawing.Size(119, 15); StoreNameLabel.Size = new Size(154, 20);
this.StoreNameLabel.TabIndex = 0; StoreNameLabel.TabIndex = 0;
this.StoreNameLabel.Text = "Название магазина: "; StoreNameLabel.Text = "Название магазина: ";
// //
// StoreAdressLabel // StoreAdressLabel
// //
this.StoreAdressLabel.AutoSize = true; StoreAdressLabel.AutoSize = true;
this.StoreAdressLabel.Location = new System.Drawing.Point(12, 40); StoreAdressLabel.Location = new Point(14, 53);
this.StoreAdressLabel.Name = "StoreAdressLabel"; StoreAdressLabel.Name = "StoreAdressLabel";
this.StoreAdressLabel.Size = new System.Drawing.Size(100, 15); StoreAdressLabel.Size = new Size(128, 20);
this.StoreAdressLabel.TabIndex = 1; StoreAdressLabel.TabIndex = 1;
this.StoreAdressLabel.Text = "Адрес магазина: "; StoreAdressLabel.Text = "Адрес магазина: ";
// //
// OpeningDateLabel // OpeningDateLabel
// //
this.OpeningDateLabel.AutoSize = true; OpeningDateLabel.AutoSize = true;
this.OpeningDateLabel.Location = new System.Drawing.Point(12, 72); OpeningDateLabel.Location = new Point(14, 96);
this.OpeningDateLabel.Name = "OpeningDateLabel"; OpeningDateLabel.Name = "OpeningDateLabel";
this.OpeningDateLabel.Size = new System.Drawing.Size(93, 15); OpeningDateLabel.Size = new Size(117, 20);
this.OpeningDateLabel.TabIndex = 2; OpeningDateLabel.TabIndex = 2;
this.OpeningDateLabel.Text = "Дата открытия: "; OpeningDateLabel.Text = "Дата открытия: ";
// //
// NameTextBox // NameTextBox
// //
this.NameTextBox.Location = new System.Drawing.Point(137, 6); NameTextBox.Location = new Point(157, 8);
this.NameTextBox.Name = "NameTextBox"; NameTextBox.Margin = new Padding(3, 4, 3, 4);
this.NameTextBox.Size = new System.Drawing.Size(174, 23); NameTextBox.Name = "NameTextBox";
this.NameTextBox.TabIndex = 3; NameTextBox.Size = new Size(198, 27);
NameTextBox.TabIndex = 3;
// //
// AdressTextBox // AdressTextBox
// //
this.AdressTextBox.Location = new System.Drawing.Point(137, 37); AdressTextBox.Location = new Point(157, 49);
this.AdressTextBox.Name = "AdressTextBox"; AdressTextBox.Margin = new Padding(3, 4, 3, 4);
this.AdressTextBox.Size = new System.Drawing.Size(174, 23); AdressTextBox.Name = "AdressTextBox";
this.AdressTextBox.TabIndex = 4; AdressTextBox.Size = new Size(198, 27);
AdressTextBox.TabIndex = 4;
// //
// DataGridView // DataGridView
// //
this.DataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; DataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { DataGridView.Columns.AddRange(new DataGridViewColumn[] { WorkName, WorkPrice, WorkCount });
this.WorkName, DataGridView.Location = new Point(14, 145);
this.WorkPrice, DataGridView.Margin = new Padding(3, 4, 3, 4);
this.WorkCount}); DataGridView.Name = "DataGridView";
this.DataGridView.Location = new System.Drawing.Point(12, 109); DataGridView.RowHeadersWidth = 51;
this.DataGridView.Name = "DataGridView"; DataGridView.RowTemplate.Height = 25;
this.DataGridView.RowTemplate.Height = 25; DataGridView.Size = new Size(887, 384);
this.DataGridView.Size = new System.Drawing.Size(776, 288); DataGridView.TabIndex = 6;
this.DataGridView.TabIndex = 6;
// //
// WorkName // WorkName
// //
this.WorkName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; WorkName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
this.WorkName.HeaderText = "Название изделия"; WorkName.HeaderText = "Название изделия";
this.WorkName.Name = "WorkName"; WorkName.MinimumWidth = 6;
WorkName.Name = "WorkName";
// //
// WorkPrice // WorkPrice
// //
this.WorkPrice.HeaderText = "Цена"; WorkPrice.HeaderText = "Цена";
this.WorkPrice.Name = "WorkPrice"; WorkPrice.MinimumWidth = 6;
WorkPrice.Name = "WorkPrice";
WorkPrice.Width = 125;
// //
// WorkCount // WorkCount
// //
this.WorkCount.HeaderText = "Количество"; WorkCount.HeaderText = "Количество";
this.WorkCount.Name = "WorkCount"; WorkCount.MinimumWidth = 6;
WorkCount.Name = "WorkCount";
WorkCount.Width = 125;
// //
// SaveButton // SaveButton
// //
this.SaveButton.Location = new System.Drawing.Point(552, 403); SaveButton.Location = new Point(631, 537);
this.SaveButton.Name = "SaveButton"; SaveButton.Margin = new Padding(3, 4, 3, 4);
this.SaveButton.Size = new System.Drawing.Size(115, 35); SaveButton.Name = "SaveButton";
this.SaveButton.TabIndex = 7; SaveButton.Size = new Size(131, 47);
this.SaveButton.Text = "Сохранить"; SaveButton.TabIndex = 7;
this.SaveButton.UseVisualStyleBackColor = true; SaveButton.Text = "Сохранить";
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click); SaveButton.UseVisualStyleBackColor = true;
SaveButton.Click += SaveButton_Click;
// //
// ButtonCancel // ButtonCancel
// //
this.ButtonCancel.Location = new System.Drawing.Point(673, 403); ButtonCancel.Location = new Point(769, 537);
this.ButtonCancel.Name = "ButtonCancel"; ButtonCancel.Margin = new Padding(3, 4, 3, 4);
this.ButtonCancel.Size = new System.Drawing.Size(115, 35); ButtonCancel.Name = "ButtonCancel";
this.ButtonCancel.TabIndex = 8; ButtonCancel.Size = new Size(131, 47);
this.ButtonCancel.Text = "Отменить"; ButtonCancel.TabIndex = 8;
this.ButtonCancel.UseVisualStyleBackColor = true; ButtonCancel.Text = "Отменить";
this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click); ButtonCancel.UseVisualStyleBackColor = true;
ButtonCancel.Click += ButtonCancel_Click;
// //
// OpeningDatePicker // OpeningDatePicker
// //
this.OpeningDatePicker.Location = new System.Drawing.Point(137, 66); OpeningDatePicker.Location = new Point(157, 88);
this.OpeningDatePicker.Name = "OpeningDatePicker"; OpeningDatePicker.Margin = new Padding(3, 4, 3, 4);
this.OpeningDatePicker.Size = new System.Drawing.Size(174, 23); OpeningDatePicker.Name = "OpeningDatePicker";
this.OpeningDatePicker.TabIndex = 9; OpeningDatePicker.Size = new Size(198, 27);
OpeningDatePicker.TabIndex = 9;
// //
// VolumeNumericUpDown // VolumeNumericUpDown
// //
this.VolumeNumericUpDown.Location = new System.Drawing.Point(486, 7); VolumeNumericUpDown.Location = new Point(570, 10);
this.VolumeNumericUpDown.Name = "VolumeNumericUpDown"; VolumeNumericUpDown.Margin = new Padding(3, 4, 3, 4);
this.VolumeNumericUpDown.Size = new System.Drawing.Size(168, 23); VolumeNumericUpDown.Name = "VolumeNumericUpDown";
this.VolumeNumericUpDown.TabIndex = 10; VolumeNumericUpDown.Size = new Size(192, 27);
VolumeNumericUpDown.TabIndex = 10;
// //
// WorkMaxCountLable // WorkMaxCountLable
// //
this.WorkMaxCountLable.AutoSize = true; WorkMaxCountLable.AutoSize = true;
this.WorkMaxCountLable.Location = new System.Drawing.Point(340, 9); WorkMaxCountLable.Location = new Point(389, 12);
this.WorkMaxCountLable.Name = "WorkMaxCountLable"; WorkMaxCountLable.Name = "WorkMaxCountLable";
this.WorkMaxCountLable.Size = new System.Drawing.Size(140, 15); WorkMaxCountLable.Size = new Size(177, 20);
this.WorkMaxCountLable.TabIndex = 11; WorkMaxCountLable.TabIndex = 11;
this.WorkMaxCountLable.Text = "Вместимость магазина: "; WorkMaxCountLable.Text = "Вместимость магазина: ";
// //
// FormStore // FormStore
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); AutoScaleDimensions = new SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); ClientSize = new Size(914, 600);
this.Controls.Add(this.WorkMaxCountLable); Controls.Add(WorkMaxCountLable);
this.Controls.Add(this.VolumeNumericUpDown); Controls.Add(VolumeNumericUpDown);
this.Controls.Add(this.OpeningDatePicker); Controls.Add(OpeningDatePicker);
this.Controls.Add(this.ButtonCancel); Controls.Add(ButtonCancel);
this.Controls.Add(this.SaveButton); Controls.Add(SaveButton);
this.Controls.Add(this.DataGridView); Controls.Add(DataGridView);
this.Controls.Add(this.AdressTextBox); Controls.Add(AdressTextBox);
this.Controls.Add(this.NameTextBox); Controls.Add(NameTextBox);
this.Controls.Add(this.OpeningDateLabel); Controls.Add(OpeningDateLabel);
this.Controls.Add(this.StoreAdressLabel); Controls.Add(StoreAdressLabel);
this.Controls.Add(this.StoreNameLabel); Controls.Add(StoreNameLabel);
this.Name = "FormStore"; Margin = new Padding(3, 4, 3, 4);
this.Text = "Изделия магазина"; Name = "FormStore";
this.Load += new System.EventHandler(this.FormStore_Load); Text = "Изделия магазина";
((System.ComponentModel.ISupportInitialize)(this.DataGridView)).EndInit(); Load += FormStore_Load;
((System.ComponentModel.ISupportInitialize)(this.VolumeNumericUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)DataGridView).EndInit();
this.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)VolumeNumericUpDown).EndInit();
this.PerformLayout(); ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion

View File

@ -1,64 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <root>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">