clear code, rename russian names
This commit is contained in:
parent
8b6c4644c1
commit
89b3fd799c
@ -36,13 +36,13 @@
|
||||
операцииToolStripMenuItem = new ToolStripMenuItem();
|
||||
CustomerContractReviewsToolStripMenuItem = new ToolStripMenuItem();
|
||||
контрактыToolStripMenuItem = new ToolStripMenuItem();
|
||||
отчетыToolStripMenuItem = new ToolStripMenuItem();
|
||||
reportsToolStripMenuItem = new ToolStripMenuItem();
|
||||
menuStrip.SuspendLayout();
|
||||
SuspendLayout();
|
||||
//
|
||||
// menuStrip
|
||||
//
|
||||
menuStrip.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem, операцииToolStripMenuItem, отчетыToolStripMenuItem });
|
||||
menuStrip.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem, операцииToolStripMenuItem, reportsToolStripMenuItem });
|
||||
menuStrip.Location = new Point(0, 0);
|
||||
menuStrip.Name = "menuStrip";
|
||||
menuStrip.Size = new Size(734, 24);
|
||||
@ -98,11 +98,11 @@
|
||||
контрактыToolStripMenuItem.Text = "Контракты";
|
||||
контрактыToolStripMenuItem.Click += ContractsToolStripMenuItem_Click;
|
||||
//
|
||||
// отчетыToolStripMenuItem
|
||||
// reportsToolStripMenuItem
|
||||
//
|
||||
отчетыToolStripMenuItem.Name = "отчетыToolStripMenuItem";
|
||||
отчетыToolStripMenuItem.Size = new Size(60, 20);
|
||||
отчетыToolStripMenuItem.Text = "Отчеты";
|
||||
reportsToolStripMenuItem.Name = "reportsToolStripMenuItem";
|
||||
reportsToolStripMenuItem.Size = new Size(60, 20);
|
||||
reportsToolStripMenuItem.Text = "Отчеты";
|
||||
//
|
||||
// FormItCompany
|
||||
//
|
||||
@ -129,7 +129,7 @@
|
||||
private ToolStripMenuItem CustomersToolStripMenuItem;
|
||||
private ToolStripMenuItem ExecutorsToolStripMenuItem;
|
||||
private ToolStripMenuItem операцииToolStripMenuItem;
|
||||
private ToolStripMenuItem отчетыToolStripMenuItem;
|
||||
private ToolStripMenuItem reportsToolStripMenuItem;
|
||||
private ToolStripMenuItem CustomerContractReviewsToolStripMenuItem;
|
||||
private ToolStripMenuItem контрактыToolStripMenuItem;
|
||||
private ToolStripMenuItem ServicesToolStripMenuItem;
|
||||
|
@ -20,7 +20,7 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
|
||||
comboBoxContractExecutorId.DataSource = executorRepository.ReadExecutors();
|
||||
comboBoxContractExecutorId.DisplayMember = "Name";
|
||||
comboBoxContractExecutorId.ValueMember= "Id";
|
||||
comboBoxContractExecutorId.ValueMember = "Id";
|
||||
|
||||
ColumnServiceDescription.DataSource = serviceRepository.ReadServices();
|
||||
ColumnServiceDescription.DisplayMember = "Description";
|
||||
|
@ -41,7 +41,7 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
||||
{
|
||||
if (string.IsNullOrEmpty(richTextBoxServiceDescription.Text))
|
||||
throw new Exception("Имеются незаполненные поля");
|
||||
|
||||
|
||||
_serviceRepository.CreateService(Service.CreateEntity(0,
|
||||
richTextBoxServiceDescription.Text));
|
||||
|
||||
|
@ -8,9 +8,9 @@ public interface IServiceRepository
|
||||
|
||||
Service ReadServiceById(int id);
|
||||
|
||||
void CreateService(Service Service);
|
||||
void CreateService(Service service);
|
||||
|
||||
void UpdateService(Service Service);
|
||||
void UpdateService(Service service);
|
||||
|
||||
void DeleteService(int id);
|
||||
}
|
@ -4,7 +4,7 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Repositories.Implementations;
|
||||
|
||||
internal class ServiceRepository : IServiceRepository
|
||||
{
|
||||
public void CreateService(Service Service)
|
||||
public void CreateService(Service service)
|
||||
{
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ internal class ServiceRepository : IServiceRepository
|
||||
return [];
|
||||
}
|
||||
|
||||
public void UpdateService(Service Service)
|
||||
public void UpdateService(Service service)
|
||||
{
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user