Диплом (1222543), страница 14
Текст из файла (страница 14)
}
else
{
this.SetkaLoad.Clear(Color.Transparent);
this.pictureBox1.Refresh();
MyForm myForm = this;
int num = (int) short.Parse(myForm.comboBox1.Text);
myForm.step = num;
this.DrawSetka();
}
}
private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
{
Bitmap bitmap = new Bitmap(Image.FromFile(this.openFileDialog1.FileName), this.pictureBox1.Width, this.pictureBox1.Height);
this.PictureLoad = Graphics.FromImage((Image) bitmap);
this.pictureBox1.BackgroundImage = (Image) bitmap;
this.comboBox1.Enabled = true;
this.button1.Enabled = true;
this.comboBox2.Enabled = true;
this.button3.Enabled = true;
int num = (int) new EnterForm().ShowDialog();
}
private void MyForm_Load(object sender, EventArgs e)
{
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
int num1 = (int) short.Parse(this.comboBox2.Text);
if (num1 != this.pictureBox1.Width)
{
this.PictureLoad.Clear(Color.Transparent);
if (this.program_status == 1)
{
this.button1.Enabled = true;
this.comboBox1.Enabled = true;
this.button2.Enabled = false;
this.button3.Enabled = true;
this.SetkaLoad.Clear(Color.Transparent);
this.program_status = 0;
}
this.pictureBox1.Refresh();
this.ClientSize = new Size(num1 + 27, num1 + 73);
Size size;
// ISSUE: explicit reference operation
// ISSUE: variable of a reference type
Size& local = @size;
int num2 = num1;
// ISSUE: explicit reference operation
^local = new Size(num2, num2);
this.pictureBox1.Size = size;
this.button1.Location = new Point(12, num1 - 500 + 519);
this.comboBox1.Location = new Point(132, num1 - 500 + 520);
this.label3.Location = new Point(180, num1 - 500 + 525);
this.button2.Location = new Point(12, num1 - 500 + 548);
this.button3.Location = new Point(132, num1 - 500 + 548);
this.label2.Location = new Point(num1 - 500 + 329, num1 - 500 + 522);
this.comboBox3.Location = new Point(num1 - 500 + 377, num1 - 500 + 518);
this.label1.Location = new Point(num1 - 500 + 394, num1 - 500 + 552);
this.comboBox2.Location = new Point(num1 - 500 + 467, num1 - 500 + 548);
this.button1.Text = "Создать сетку";
Bitmap bitmap = new Bitmap(Image.FromFile(this.openFileDialog1.FileName), this.pictureBox1.Width, this.pictureBox1.Height);
this.PictureLoad = Graphics.FromImage((Image) bitmap);
this.pictureBox1.BackgroundImage = (Image) bitmap;
}
else
{
int num3 = (int) MessageBox.Show("У Вас уже установлен выбранный размер!", "Ошибка");
}
}
private void button3_Click_1(object sender, EventArgs e)
{
int num = (int) this.openFileDialog2.ShowDialog();
}
private void openFileDialog2_FileOk(object sender, CancelEventArgs e)
{
SolidBrush solidBrush = (SolidBrush) null;
this.button1.Enabled = false;
this.comboBox1.Enabled = false;
this.button2.Enabled = false;
this.comboBox3.Enabled = false;
if (this.program_status == 1)
{
this.SetkaLoad.Clear(Color.Transparent);
this.pictureBox1.Refresh();
}
this.program_status = 1;
StreamReader streamReader = new StreamReader(this.openFileDialog2.FileName);
streamReader.ReadLine();
this.step = (int) short.Parse(streamReader.ReadLine());
MyForm myForm1 = this;
Graphics graphics = myForm1.pictureBox1.CreateGraphics();
myForm1.SetkaLoad = graphics;
Pen pen = new Pen(Color.Black, 2f);
solidBrush = new SolidBrush(Color.Orange);
MyForm myForm2 = this;
double num1 = (double) ((float) myForm2.pictureBox1.Width / (float) this.step);
myForm2.PointX = (float) num1;
for (int index1 = 0; index1 < this.step; ++index1)
{
string str = streamReader.ReadLine();
int length = str.Length;
int num2 = 0;
for (int index2 = 0; index2 < length; ++index2)
{
if ((int) str[index2] == 32 || \u003CModule\u003E.isdigit((int) str[index2]) == 0)
continue;
this.SetkaLoad.DrawRectangle(pen, (float) num2 * this.PointX, (float) index1 * this.PointX, this.PointX, this.PointX);
int num3 = 4;
if ((int) str[index2] == (int) num3.ToString()[0])
{
this.SetkaLoad.FillRectangle(Brushes.Green, (float) num2 * this.PointX, (float) index1 * this.PointX, this.PointX, this.PointX);
}
else
{
int num4 = 0;
if ((int) str[index2] == (int) num4.ToString()[0])
{
this.SetkaLoad.FillRectangle(Brushes.Orange, (float) num2 * this.PointX, (float) index1 * this.PointX, this.PointX, this.PointX);
}
else
{
int num5 = 2;
if ((int) str[index2] == (int) num5.ToString()[0])
{
this.SetkaLoad.FillRectangle(Brushes.Yellow, (float) num2 * this.PointX, (float) index1 * this.PointX, this.PointX, this.PointX);
}
else
{
int num6 = 3;
if ((int) str[index2] == (int) num6.ToString()[0])
this.SetkaLoad.FillRectangle(Brushes.Blue, (float) num2 * this.PointX, (float) index1 * this.PointX, this.PointX, this.PointX);
}
}
}
++num2;
}
}
streamReader.Close();
int num7 = (int) MessageBox.Show("Загружена матрица " + (object) this.step + "x" + (object) this.step + "!", "Загрузка");
}
private void comboBox1_TextUpdate(object sender, EventArgs e)
{
this.label3.Text = 120.ToString() + this.comboBox1.Text;
}
[HandleProcessCorruptedStateExceptions]
protected override void Dispose([MarshalAs(UnmanagedType.U1)] bool A_0)
{
if (A_0)
{
try
{
this.\u007EMyForm();
}
finally
{
base.Dispose(true);
}
}
else
base.Dispose(false);
}
}
}
Setka.cs
using System.Diagnostics;
using System.Reflection;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
[assembly: SecurityRules(SecurityRuleSet.Level1)]
[assembly: TargetFramework(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")]
[assembly: Debuggable(true, true)]
[assembly: AssemblyVersion("0.0.0.0")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
ОПИСЬ
к выпускной квалификационной работе
ВКР.09.04.01.ИВТ.02.00.ИВ 2 – ПЗ
| Наименование | Формат | Обозначение | Количество листов | Место хранения |
| 1 Пояснительная записка | А4 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 110 | ДВГУПС |
| 2 Плакат 1. Отношение числа россыпей с низким содержанием полезных компонентов к общему числу месторождений | А1 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 3 Плакат 2. Представление исследуемой территории в матричный вид | А1 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 4 Плакат 3. Определение оптимального расположения обогатительной фабрики | А1 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 5 Плакат 4. Расчет группы территориально-сближенных месторождений ГК «Петропавловск» | А1 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 6 Плакат 5. Алгоритм построения маршрута через недоступные участки местности | А1 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 7 Плакат 6. Показатели оценки эффективности внедрения программного комплекса | А1 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 8 Отзыв руководителя | А4 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 9 Рецензия предприятия | А4 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 10 Акт внедрения | А4 | ВКР.09.04.01.ИВТ.02. 00.ИВ 2 – ПЗ | 1 | ДВГУПС |
| 11 CD-диск с ДП | 2 | ДВГУПС |















