Compare commits
No commits in common. "58d5e959c7ca9513f1032dafc5771f2bd2363d00" and "d83972988a3f0d9162e839322172e9f5bc91b96f" have entirely different histories.
58d5e959c7
...
d83972988a
@ -31,7 +31,7 @@ namespace HoistingCrane.CollectionGenericObjects
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return (pictureWidth * pictureHeight) / (_placeSizeHeight * _placeSizeWidth);
|
return (pictureWidth * pictureHeight) / (_placeSizeHeight * _placeSizeWidth)-3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public AbstractCompany(int picWidth, int picHeight, ICollectionGenericObjects<DrawningTrackedVehicle> array)
|
public AbstractCompany(int picWidth, int picHeight, ICollectionGenericObjects<DrawningTrackedVehicle> array)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
using HoistingCrane.Drawning;
|
using HoistingCrane.Drawning;
|
||||||
using System;
|
using System;
|
||||||
using System.Configuration;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace HoistingCrane.CollectionGenericObjects
|
namespace HoistingCrane.CollectionGenericObjects
|
||||||
@ -95,7 +94,6 @@ namespace HoistingCrane.CollectionGenericObjects
|
|||||||
using (StreamWriter writer = new StreamWriter(filename))
|
using (StreamWriter writer = new StreamWriter(filename))
|
||||||
{
|
{
|
||||||
writer.Write(_collectionKey);
|
writer.Write(_collectionKey);
|
||||||
|
|
||||||
foreach (KeyValuePair<string, ICollectionGenericObjects<T>> value in dict)
|
foreach (KeyValuePair<string, ICollectionGenericObjects<T>> value in dict)
|
||||||
{
|
{
|
||||||
StringBuilder sb = new();
|
StringBuilder sb = new();
|
||||||
@ -125,8 +123,10 @@ namespace HoistingCrane.CollectionGenericObjects
|
|||||||
}
|
}
|
||||||
writer.Write(sb);
|
writer.Write(sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -156,7 +156,7 @@ namespace HoistingCrane.CollectionGenericObjects
|
|||||||
while ((strs = fs.ReadLine()) != null)
|
while ((strs = fs.ReadLine()) != null)
|
||||||
{
|
{
|
||||||
string[] record = strs.Split(_separatorForKeyValue, StringSplitOptions.RemoveEmptyEntries);
|
string[] record = strs.Split(_separatorForKeyValue, StringSplitOptions.RemoveEmptyEntries);
|
||||||
if (record.Length != 2)
|
if (record.Length != 4)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
groupBoxTools.Dock = DockStyle.Right;
|
groupBoxTools.Dock = DockStyle.Right;
|
||||||
groupBoxTools.Location = new Point(763, 24);
|
groupBoxTools.Location = new Point(763, 24);
|
||||||
groupBoxTools.Name = "groupBoxTools";
|
groupBoxTools.Name = "groupBoxTools";
|
||||||
groupBoxTools.Size = new Size(210, 499);
|
groupBoxTools.Size = new Size(210, 485);
|
||||||
groupBoxTools.TabIndex = 0;
|
groupBoxTools.TabIndex = 0;
|
||||||
groupBoxTools.TabStop = false;
|
groupBoxTools.TabStop = false;
|
||||||
groupBoxTools.Text = "Инструменты";
|
groupBoxTools.Text = "Инструменты";
|
||||||
@ -81,7 +81,7 @@
|
|||||||
panelCompanyTool.Controls.Add(buttonRefresh);
|
panelCompanyTool.Controls.Add(buttonRefresh);
|
||||||
panelCompanyTool.Controls.Add(buttonGoToChek);
|
panelCompanyTool.Controls.Add(buttonGoToChek);
|
||||||
panelCompanyTool.Controls.Add(buttonDeleteCar);
|
panelCompanyTool.Controls.Add(buttonDeleteCar);
|
||||||
panelCompanyTool.Location = new Point(6, 319);
|
panelCompanyTool.Location = new Point(6, 312);
|
||||||
panelCompanyTool.Name = "panelCompanyTool";
|
panelCompanyTool.Name = "panelCompanyTool";
|
||||||
panelCompanyTool.Size = new Size(204, 185);
|
panelCompanyTool.Size = new Size(204, 185);
|
||||||
panelCompanyTool.TabIndex = 8;
|
panelCompanyTool.TabIndex = 8;
|
||||||
@ -198,7 +198,7 @@
|
|||||||
radioButtonList.AutoSize = true;
|
radioButtonList.AutoSize = true;
|
||||||
radioButtonList.Location = new Point(128, 56);
|
radioButtonList.Location = new Point(128, 56);
|
||||||
radioButtonList.Name = "radioButtonList";
|
radioButtonList.Name = "radioButtonList";
|
||||||
radioButtonList.Size = new Size(66, 19);
|
radioButtonList.Size = new Size(67, 19);
|
||||||
radioButtonList.TabIndex = 3;
|
radioButtonList.TabIndex = 3;
|
||||||
radioButtonList.TabStop = true;
|
radioButtonList.TabStop = true;
|
||||||
radioButtonList.Text = "Список";
|
radioButtonList.Text = "Список";
|
||||||
@ -209,7 +209,7 @@
|
|||||||
radioButtonMassive.AutoSize = true;
|
radioButtonMassive.AutoSize = true;
|
||||||
radioButtonMassive.Location = new Point(18, 56);
|
radioButtonMassive.Location = new Point(18, 56);
|
||||||
radioButtonMassive.Name = "radioButtonMassive";
|
radioButtonMassive.Name = "radioButtonMassive";
|
||||||
radioButtonMassive.Size = new Size(67, 19);
|
radioButtonMassive.Size = new Size(69, 19);
|
||||||
radioButtonMassive.TabIndex = 2;
|
radioButtonMassive.TabIndex = 2;
|
||||||
radioButtonMassive.TabStop = true;
|
radioButtonMassive.TabStop = true;
|
||||||
radioButtonMassive.Text = "Массив";
|
radioButtonMassive.Text = "Массив";
|
||||||
@ -227,7 +227,7 @@
|
|||||||
labelCollectionName.AutoSize = true;
|
labelCollectionName.AutoSize = true;
|
||||||
labelCollectionName.Location = new Point(35, 0);
|
labelCollectionName.Location = new Point(35, 0);
|
||||||
labelCollectionName.Name = "labelCollectionName";
|
labelCollectionName.Name = "labelCollectionName";
|
||||||
labelCollectionName.Size = new Size(125, 15);
|
labelCollectionName.Size = new Size(135, 15);
|
||||||
labelCollectionName.TabIndex = 0;
|
labelCollectionName.TabIndex = 0;
|
||||||
labelCollectionName.Text = "Название коллекции:";
|
labelCollectionName.Text = "Название коллекции:";
|
||||||
//
|
//
|
||||||
@ -248,7 +248,7 @@
|
|||||||
pictureBox.Dock = DockStyle.Fill;
|
pictureBox.Dock = DockStyle.Fill;
|
||||||
pictureBox.Location = new Point(0, 24);
|
pictureBox.Location = new Point(0, 24);
|
||||||
pictureBox.Name = "pictureBox";
|
pictureBox.Name = "pictureBox";
|
||||||
pictureBox.Size = new Size(763, 499);
|
pictureBox.Size = new Size(763, 485);
|
||||||
pictureBox.TabIndex = 1;
|
pictureBox.TabIndex = 1;
|
||||||
pictureBox.TabStop = false;
|
pictureBox.TabStop = false;
|
||||||
//
|
//
|
||||||
@ -265,14 +265,14 @@
|
|||||||
//
|
//
|
||||||
файлToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { saveToolStripMenuItem, loadToolStripMenuItem });
|
файлToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { saveToolStripMenuItem, loadToolStripMenuItem });
|
||||||
файлToolStripMenuItem.Name = "файлToolStripMenuItem";
|
файлToolStripMenuItem.Name = "файлToolStripMenuItem";
|
||||||
файлToolStripMenuItem.Size = new Size(48, 20);
|
файлToolStripMenuItem.Size = new Size(50, 20);
|
||||||
файлToolStripMenuItem.Text = "Файл";
|
файлToolStripMenuItem.Text = "Файл";
|
||||||
//
|
//
|
||||||
// saveToolStripMenuItem
|
// saveToolStripMenuItem
|
||||||
//
|
//
|
||||||
saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
||||||
saveToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.S;
|
saveToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.S;
|
||||||
saveToolStripMenuItem.Size = new Size(181, 22);
|
saveToolStripMenuItem.Size = new Size(186, 22);
|
||||||
saveToolStripMenuItem.Text = "Сохранение";
|
saveToolStripMenuItem.Text = "Сохранение";
|
||||||
saveToolStripMenuItem.Click += saveToolStripMenuItem_Click;
|
saveToolStripMenuItem.Click += saveToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
@ -280,7 +280,7 @@
|
|||||||
//
|
//
|
||||||
loadToolStripMenuItem.Name = "loadToolStripMenuItem";
|
loadToolStripMenuItem.Name = "loadToolStripMenuItem";
|
||||||
loadToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.L;
|
loadToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.L;
|
||||||
loadToolStripMenuItem.Size = new Size(181, 22);
|
loadToolStripMenuItem.Size = new Size(186, 22);
|
||||||
loadToolStripMenuItem.Text = "Загрузка";
|
loadToolStripMenuItem.Text = "Загрузка";
|
||||||
loadToolStripMenuItem.Click += loadToolStripMenuItem_Click;
|
loadToolStripMenuItem.Click += loadToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
@ -296,7 +296,7 @@
|
|||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
ClientSize = new Size(973, 523);
|
ClientSize = new Size(973, 509);
|
||||||
Controls.Add(pictureBox);
|
Controls.Add(pictureBox);
|
||||||
Controls.Add(groupBoxTools);
|
Controls.Add(groupBoxTools);
|
||||||
Controls.Add(menuStrip);
|
Controls.Add(menuStrip);
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
CollectionsStorage
|
|
||||||
массив|Massive|25|EntityTrackedVehicle:100:100:Green;EntityHoistingCrane:100:100:Yellow:Black:False:False;EntityTrackedVehicle:100:100:Gray;
|
|
||||||
список|List|2|EntityTrackedVehicle:100:100:Blue;EntityHoistingCrane:100:100:Gray:Black:True:True;
|
|
@ -1,2 +0,0 @@
|
|||||||
CollectionsStorage
|
|
||||||
массив|Massive|24|EntityTrackedVehicle:100:100:Gray;EntityTrackedVehicle:100:100:Red;EntityTrackedVehicle:100:100:Blue;EntityTrackedVehicle:100:100:Yellow;EntityTrackedVehicle:100:100:Green;EntityTrackedVehicle:100:100:Black;EntityTrackedVehicle:100:100:White;EntityTrackedVehicle:100:100:Purple;EntityHoistingCrane:100:100:Green:Black:False:False;EntityHoistingCrane:100:100:Yellow:Gray:False:True;EntityHoistingCrane:100:100:Purple:Black:True:True;EntityTrackedVehicle:100:100:White;EntityHoistingCrane:100:100:White:Black:False:True;EntityTrackedVehicle:100:100:Green;EntityTrackedVehicle:100:100:White;EntityTrackedVehicle:100:100:White;EntityTrackedVehicle:100:100:White;EntityTrackedVehicle:100:100:White;EntityHoistingCrane:100:100:White:Black:False:False;EntityTrackedVehicle:100:100:White;EntityTrackedVehicle:100:100:Yellow;EntityTrackedVehicle:100:100:White;EntityHoistingCrane:100:100:Gray:Black:False:False;EntityTrackedVehicle:100:100:Black;
|
|
@ -1,3 +0,0 @@
|
|||||||
CollectionsStorage
|
|
||||||
массив|Massive
|
|
||||||
список|List
|
|
Loading…
Reference in New Issue
Block a user