Сделал форму редактирования рецепта

This commit is contained in:
Никита Потапов 2024-04-30 11:01:42 +04:00
parent c1c32d22ec
commit 3d80a7ade7
2 changed files with 112 additions and 29 deletions

View File

@ -28,12 +28,95 @@
/// </summary>
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 = "FormRecipe";
textBoxComment = new TextBox();
labelComment = new Label();
labelProceduresCount = new Label();
buttonCancel = new Button();
buttonApply = new Button();
numericUpDownProceduresCount = new NumericUpDown();
((System.ComponentModel.ISupportInitialize)numericUpDownProceduresCount).BeginInit();
SuspendLayout();
//
// textBoxComment
//
textBoxComment.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
textBoxComment.Location = new Point(12, 72);
textBoxComment.Multiline = true;
textBoxComment.Name = "textBoxComment";
textBoxComment.Size = new Size(438, 107);
textBoxComment.TabIndex = 13;
//
// labelComment
//
labelComment.AutoSize = true;
labelComment.Location = new Point(12, 49);
labelComment.Name = "labelComment";
labelComment.Size = new Size(107, 20);
labelComment.TabIndex = 11;
labelComment.Text = "Комментарий";
//
// labelProceduresCount
//
labelProceduresCount.AutoSize = true;
labelProceduresCount.Location = new Point(12, 12);
labelProceduresCount.Name = "labelProceduresCount";
labelProceduresCount.Size = new Size(154, 20);
labelProceduresCount.TabIndex = 10;
labelProceduresCount.Text = "Колиество процедур";
//
// buttonCancel
//
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonCancel.Location = new Point(356, 185);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(94, 29);
buttonCancel.TabIndex = 9;
buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true;
//
// buttonApply
//
buttonApply.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonApply.Location = new Point(256, 185);
buttonApply.Name = "buttonApply";
buttonApply.Size = new Size(94, 29);
buttonApply.TabIndex = 8;
buttonApply.Text = "Сохранить";
buttonApply.UseVisualStyleBackColor = true;
//
// numericUpDownProceduresCount
//
numericUpDownProceduresCount.Location = new Point(172, 12);
numericUpDownProceduresCount.Name = "numericUpDownProceduresCount";
numericUpDownProceduresCount.Size = new Size(164, 27);
numericUpDownProceduresCount.TabIndex = 14;
//
// FormRecipe
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(462, 223);
Controls.Add(numericUpDownProceduresCount);
Controls.Add(textBoxComment);
Controls.Add(labelComment);
Controls.Add(labelProceduresCount);
Controls.Add(buttonCancel);
Controls.Add(buttonApply);
MinimumSize = new Size(480, 270);
Name = "FormRecipe";
Text = "Редактировать рецепт";
((System.ComponentModel.ISupportInitialize)numericUpDownProceduresCount).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private TextBox textBoxComment;
private Label labelComment;
private Label labelProceduresCount;
private Button buttonCancel;
private Button buttonApply;
private NumericUpDown numericUpDownProceduresCount;
}
}

View File

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<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
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>
@ -26,36 +26,36 @@
<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
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
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
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
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
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
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
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->