Сделал форму редактора симптомов

This commit is contained in:
Никита Потапов 2024-04-30 10:42:19 +04:00
parent 3c925c656f
commit 4545a93243
2 changed files with 165 additions and 29 deletions

View File

@ -28,12 +28,148 @@
/// </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 = "FormSymptom";
textBoxComment = new TextBox();
textBoxName = new TextBox();
labelComment = new Label();
labelName = new Label();
buttonCancel = new Button();
buttonApply = new Button();
dataGridView = new DataGridView();
labelTableName = new Label();
buttonRemoveDiagnose = new Button();
buttonAddDiagnose = new Button();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout();
//
// textBoxComment
//
textBoxComment.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBoxComment.Location = new Point(12, 72);
textBoxComment.Multiline = true;
textBoxComment.Name = "textBoxComment";
textBoxComment.Size = new Size(498, 104);
textBoxComment.TabIndex = 13;
//
// textBoxName
//
textBoxName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
textBoxName.Location = new Point(95, 9);
textBoxName.Name = "textBoxName";
textBoxName.Size = new Size(415, 27);
textBoxName.TabIndex = 12;
//
// labelComment
//
labelComment.AutoSize = true;
labelComment.Location = new Point(12, 49);
labelComment.Name = "labelComment";
labelComment.Size = new Size(107, 20);
labelComment.TabIndex = 11;
labelComment.Text = "Комментарий";
//
// labelName
//
labelName.AutoSize = true;
labelName.Location = new Point(12, 12);
labelName.Name = "labelName";
labelName.Size = new Size(77, 20);
labelName.TabIndex = 10;
labelName.Text = "Название";
//
// buttonCancel
//
buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonCancel.Location = new Point(416, 395);
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(316, 395);
buttonApply.Name = "buttonApply";
buttonApply.Size = new Size(94, 29);
buttonApply.TabIndex = 8;
buttonApply.Text = "Сохранить";
buttonApply.UseVisualStyleBackColor = true;
//
// dataGridView
//
dataGridView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(12, 203);
dataGridView.Name = "dataGridView";
dataGridView.RowHeadersWidth = 51;
dataGridView.RowTemplate.Height = 29;
dataGridView.Size = new Size(360, 186);
dataGridView.TabIndex = 14;
//
// labelTableName
//
labelTableName.AutoSize = true;
labelTableName.Location = new Point(12, 180);
labelTableName.Name = "labelTableName";
labelTableName.Size = new Size(68, 20);
labelTableName.TabIndex = 15;
labelTableName.Text = "Болезни";
//
// buttonRemoveDiagnose
//
buttonRemoveDiagnose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
buttonRemoveDiagnose.Location = new Point(398, 314);
buttonRemoveDiagnose.Name = "buttonRemoveDiagnose";
buttonRemoveDiagnose.Size = new Size(94, 56);
buttonRemoveDiagnose.TabIndex = 17;
buttonRemoveDiagnose.Text = "Удалить болезнь";
buttonRemoveDiagnose.UseVisualStyleBackColor = true;
//
// buttonAddDiagnose
//
buttonAddDiagnose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
buttonAddDiagnose.Location = new Point(398, 211);
buttonAddDiagnose.Name = "buttonAddDiagnose";
buttonAddDiagnose.Size = new Size(94, 55);
buttonAddDiagnose.TabIndex = 16;
buttonAddDiagnose.Text = "Добавить болезнь";
buttonAddDiagnose.UseVisualStyleBackColor = true;
//
// FormSymptom
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(522, 433);
Controls.Add(buttonRemoveDiagnose);
Controls.Add(buttonAddDiagnose);
Controls.Add(labelTableName);
Controls.Add(dataGridView);
Controls.Add(textBoxComment);
Controls.Add(textBoxName);
Controls.Add(labelComment);
Controls.Add(labelName);
Controls.Add(buttonCancel);
Controls.Add(buttonApply);
MinimumSize = new Size(480, 480);
Name = "FormSymptom";
Text = "Редактировать симптом";
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private TextBox textBoxComment;
private TextBox textBoxName;
private Label labelComment;
private Label labelName;
private Button buttonCancel;
private Button buttonApply;
private DataGridView dataGridView;
private Label labelTableName;
private Button buttonRemoveDiagnose;
private Button buttonAddDiagnose;
}
}

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.
-->