Сырой

This commit is contained in:
artemkudinov14 2024-11-22 10:39:18 +04:00
parent 79a3241756
commit b398267621
7 changed files with 66 additions and 42 deletions

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectSession.Entities.Enums;
[Flags]
public enum DisciplineType
{
None = 0,
Mathematics = 1,
Physics = 2,
Chemistry = 4,
Biology = 8,
History = 16,
Literature = 32,
Programming = 64,
}

View File

@ -42,9 +42,9 @@
labelName.AutoSize = true;
labelName.Location = new Point(14, 27);
labelName.Name = "labelName";
labelName.Size = new Size(42, 20);
labelName.Size = new Size(45, 20);
labelName.TabIndex = 0;
labelName.Text = "Имя:";
labelName.Text = "ФИО:";
//
// textBoxName
//

View File

@ -97,7 +97,7 @@
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(256, 207);
ClientSize = new Size(255, 202);
Controls.Add(buttonCancel);
Controls.Add(buttonSave);
Controls.Add(dateTimePickerDate);

View File

@ -37,24 +37,26 @@
// labelName
//
labelName.AutoSize = true;
labelName.Location = new Point(12, 20);
labelName.Location = new Point(14, 27);
labelName.Name = "labelName";
labelName.Size = new Size(37, 15);
labelName.Size = new Size(45, 20);
labelName.TabIndex = 0;
labelName.Text = "Имя:";
labelName.Text = "ФИО:";
//
// textBoxName
//
textBoxName.Location = new Point(12, 38);
textBoxName.Location = new Point(14, 51);
textBoxName.Margin = new Padding(3, 4, 3, 4);
textBoxName.Name = "textBoxName";
textBoxName.Size = new Size(200, 23);
textBoxName.Size = new Size(228, 27);
textBoxName.TabIndex = 1;
//
// buttonSave
//
buttonSave.Location = new Point(12, 70);
buttonSave.Location = new Point(14, 93);
buttonSave.Margin = new Padding(3, 4, 3, 4);
buttonSave.Name = "buttonSave";
buttonSave.Size = new Size(75, 23);
buttonSave.Size = new Size(86, 31);
buttonSave.TabIndex = 2;
buttonSave.Text = "Сохранить";
buttonSave.UseVisualStyleBackColor = true;
@ -62,9 +64,10 @@
//
// buttonCancel
//
buttonCancel.Location = new Point(93, 70);
buttonCancel.Location = new Point(106, 93);
buttonCancel.Margin = new Padding(3, 4, 3, 4);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(75, 23);
buttonCancel.Size = new Size(86, 31);
buttonCancel.TabIndex = 3;
buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true;
@ -72,13 +75,14 @@
//
// FormTeacherEdit
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(224, 105);
ClientSize = new Size(256, 140);
Controls.Add(buttonCancel);
Controls.Add(buttonSave);
Controls.Add(textBoxName);
Controls.Add(labelName);
Margin = new Padding(3, 4, 3, 4);
Name = "FormTeacherEdit";
Text = "Редактирование преподавателя";
ResumeLayout(false);

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

View File

@ -15,4 +15,4 @@ public interface IDisciplineRepository
void CreateDiscipline(Discipline discipline);
void UpdateDiscipline(Discipline discipline);
void DeleteDiscipline(int id);
}
}

View File

@ -11,7 +11,7 @@ public class DisciplineRepository : IDisciplineRepository
{
public void CreateDiscipline(Discipline discipline) { }
public void DeleteDiscipline(int id) { }
public Discipline ReadDisciplineById(int id) { return Discipline.CreateEntity(0, string.Empty); }
public Discipline ReadDisciplineById(int id) => Discipline.CreateEntity(0, string.Empty);
public IEnumerable<Discipline> ReadDisciplines() { return new List<Discipline>(); }
public void UpdateDiscipline(Discipline discipline) { }
}
}