Сырой
This commit is contained in:
parent
79a3241756
commit
b398267621
@ -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,
|
||||||
|
}
|
@ -42,9 +42,9 @@
|
|||||||
labelName.AutoSize = true;
|
labelName.AutoSize = true;
|
||||||
labelName.Location = new Point(14, 27);
|
labelName.Location = new Point(14, 27);
|
||||||
labelName.Name = "labelName";
|
labelName.Name = "labelName";
|
||||||
labelName.Size = new Size(42, 20);
|
labelName.Size = new Size(45, 20);
|
||||||
labelName.TabIndex = 0;
|
labelName.TabIndex = 0;
|
||||||
labelName.Text = "Имя:";
|
labelName.Text = "ФИО:";
|
||||||
//
|
//
|
||||||
// textBoxName
|
// textBoxName
|
||||||
//
|
//
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
ClientSize = new Size(256, 207);
|
ClientSize = new Size(255, 202);
|
||||||
Controls.Add(buttonCancel);
|
Controls.Add(buttonCancel);
|
||||||
Controls.Add(buttonSave);
|
Controls.Add(buttonSave);
|
||||||
Controls.Add(dateTimePickerDate);
|
Controls.Add(dateTimePickerDate);
|
||||||
|
@ -37,24 +37,26 @@
|
|||||||
// labelName
|
// labelName
|
||||||
//
|
//
|
||||||
labelName.AutoSize = true;
|
labelName.AutoSize = true;
|
||||||
labelName.Location = new Point(12, 20);
|
labelName.Location = new Point(14, 27);
|
||||||
labelName.Name = "labelName";
|
labelName.Name = "labelName";
|
||||||
labelName.Size = new Size(37, 15);
|
labelName.Size = new Size(45, 20);
|
||||||
labelName.TabIndex = 0;
|
labelName.TabIndex = 0;
|
||||||
labelName.Text = "Имя:";
|
labelName.Text = "ФИО:";
|
||||||
//
|
//
|
||||||
// textBoxName
|
// 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.Name = "textBoxName";
|
||||||
textBoxName.Size = new Size(200, 23);
|
textBoxName.Size = new Size(228, 27);
|
||||||
textBoxName.TabIndex = 1;
|
textBoxName.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// buttonSave
|
// 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.Name = "buttonSave";
|
||||||
buttonSave.Size = new Size(75, 23);
|
buttonSave.Size = new Size(86, 31);
|
||||||
buttonSave.TabIndex = 2;
|
buttonSave.TabIndex = 2;
|
||||||
buttonSave.Text = "Сохранить";
|
buttonSave.Text = "Сохранить";
|
||||||
buttonSave.UseVisualStyleBackColor = true;
|
buttonSave.UseVisualStyleBackColor = true;
|
||||||
@ -62,9 +64,10 @@
|
|||||||
//
|
//
|
||||||
// buttonCancel
|
// 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.Name = "buttonCancel";
|
||||||
buttonCancel.Size = new Size(75, 23);
|
buttonCancel.Size = new Size(86, 31);
|
||||||
buttonCancel.TabIndex = 3;
|
buttonCancel.TabIndex = 3;
|
||||||
buttonCancel.Text = "Отмена";
|
buttonCancel.Text = "Отмена";
|
||||||
buttonCancel.UseVisualStyleBackColor = true;
|
buttonCancel.UseVisualStyleBackColor = true;
|
||||||
@ -72,13 +75,14 @@
|
|||||||
//
|
//
|
||||||
// FormTeacherEdit
|
// FormTeacherEdit
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
ClientSize = new Size(224, 105);
|
ClientSize = new Size(256, 140);
|
||||||
Controls.Add(buttonCancel);
|
Controls.Add(buttonCancel);
|
||||||
Controls.Add(buttonSave);
|
Controls.Add(buttonSave);
|
||||||
Controls.Add(textBoxName);
|
Controls.Add(textBoxName);
|
||||||
Controls.Add(labelName);
|
Controls.Add(labelName);
|
||||||
|
Margin = new Padding(3, 4, 3, 4);
|
||||||
Name = "FormTeacherEdit";
|
Name = "FormTeacherEdit";
|
||||||
Text = "Редактирование преподавателя";
|
Text = "Редактирование преподавателя";
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<!--
|
<!--
|
||||||
Microsoft ResX Schema
|
Microsoft ResX Schema
|
||||||
|
|
||||||
Version 2.0
|
Version 2.0
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
The primary goals of this format is to allow a simple XML format
|
||||||
that is mostly human readable. The generation and parsing of the
|
that is mostly human readable. The generation and parsing of the
|
||||||
various data types are done through the TypeConverter classes
|
various data types are done through the TypeConverter classes
|
||||||
associated with the data types.
|
associated with the data types.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
... ado.net/XML headers & schema ...
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
<resheader name="version">2.0</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>
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
<comment>This is a comment</comment>
|
<comment>This is a comment</comment>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
There are any number of "resheader" rows that contain simple
|
||||||
name/value pairs.
|
name/value pairs.
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
Each data row contains a name, and value. The row also contains a
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
text/value conversion through the TypeConverter architecture.
|
text/value conversion through the TypeConverter architecture.
|
||||||
Classes that don't support this are serialized and stored with the
|
Classes that don't support this are serialized and stored with the
|
||||||
mimetype set.
|
mimetype set.
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
The mimetype is used for serialized objects, and tells the
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
read any of the formats listed below.
|
read any of the formats listed below.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
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
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
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
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
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
|
: using a System.ComponentModel.TypeConverter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
-->
|
-->
|
||||||
|
@ -15,4 +15,4 @@ public interface IDisciplineRepository
|
|||||||
void CreateDiscipline(Discipline discipline);
|
void CreateDiscipline(Discipline discipline);
|
||||||
void UpdateDiscipline(Discipline discipline);
|
void UpdateDiscipline(Discipline discipline);
|
||||||
void DeleteDiscipline(int id);
|
void DeleteDiscipline(int id);
|
||||||
}
|
}
|
@ -11,7 +11,7 @@ public class DisciplineRepository : IDisciplineRepository
|
|||||||
{
|
{
|
||||||
public void CreateDiscipline(Discipline discipline) { }
|
public void CreateDiscipline(Discipline discipline) { }
|
||||||
public void DeleteDiscipline(int id) { }
|
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 IEnumerable<Discipline> ReadDisciplines() { return new List<Discipline>(); }
|
||||||
public void UpdateDiscipline(Discipline discipline) { }
|
public void UpdateDiscipline(Discipline discipline) { }
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user