Редактирование. Готовая работа

This commit is contained in:
AparyanLuiza 2023-12-13 18:28:26 +04:00
parent 0027078048
commit 5630e074f1
2 changed files with 0 additions and 23 deletions

View File

@ -1,8 +1,6 @@
using Bulldozer; using Bulldozer;
using ProjectBulldozer.Generics; using ProjectBulldozer.Generics;
using ProjectBulldozer.Drawning; using ProjectBulldozer.Drawning;
using System.ComponentModel;
namespace ProjectBulldozer namespace ProjectBulldozer
{ {
public partial class FormTractorCollections : Form public partial class FormTractorCollections : Form
@ -99,8 +97,6 @@ namespace ProjectBulldozer
else else
{ {
MessageBox.Show("Не удалось добавить объект"); MessageBox.Show("Не удалось добавить объект");
} }
} }
private void ButtonRemoveTractor_Click(object sender, EventArgs e) private void ButtonRemoveTractor_Click(object sender, EventArgs e)
@ -111,7 +107,6 @@ namespace ProjectBulldozer
{ {
return; return;
} }
if (MessageBox.Show("Удалить объект?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) if (MessageBox.Show("Удалить объект?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{ {
return; return;
@ -137,7 +132,6 @@ namespace ProjectBulldozer
} }
pictureBoxCollections.Image = obj.ShowTractors(); pictureBoxCollections.Image = obj.ShowTractors();
} }
private void SaveToolStripMenuItem_Click(object sender, EventArgs e) private void SaveToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (saveFileDialog.ShowDialog() == DialogResult.OK) if (saveFileDialog.ShowDialog() == DialogResult.OK)
@ -154,22 +148,6 @@ namespace ProjectBulldozer
} }
} }
} }
private void saveFileDialog_FileOk(object sender, CancelEventArgs e)
{
}
private void openFileDialog_FileOk(object sender, CancelEventArgs e)
{
}
private void файлToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void LoadToolStripMenuItem_Click(object sender, EventArgs e) private void LoadToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (openFileDialog.ShowDialog() == DialogResult.OK) if (openFileDialog.ShowDialog() == DialogResult.OK)

View File

@ -57,7 +57,6 @@ namespace ProjectBulldozer.Generics
g.DrawLine(pen, i * _placeSizeWidth, 0, i * _placeSizeWidth, _pictureHeight / _placeSizeHeight * _placeSizeHeight); g.DrawLine(pen, i * _placeSizeWidth, 0, i * _placeSizeWidth, _pictureHeight / _placeSizeHeight * _placeSizeHeight);
} }
} }
private void DrawObjects(Graphics g) private void DrawObjects(Graphics g)
{ {
int width = _pictureWidth / _placeSizeWidth; int width = _pictureWidth / _placeSizeWidth;