Enabled generation
This commit is contained in:
parent
5cc9d26c62
commit
a1b06003f7
@ -57,32 +57,32 @@ namespace ConstructionCompanyView
|
|||||||
|
|
||||||
private void buttonGenerate_Click(object sender, EventArgs e)
|
private void buttonGenerate_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//Stopwatch stopwatch = new Stopwatch();
|
Stopwatch stopwatch = new Stopwatch();
|
||||||
//stopwatch.Start();
|
stopwatch.Start();
|
||||||
//_random.GenerateMaterials();
|
_random.GenerateMaterials();
|
||||||
//stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
//long materials = stopwatch.ElapsedMilliseconds;
|
long materials = stopwatch.ElapsedMilliseconds;
|
||||||
//stopwatch.Restart();
|
stopwatch.Restart();
|
||||||
//_random.GeneratePositions();
|
_random.GeneratePositions();
|
||||||
//stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
//long positions = stopwatch.ElapsedMilliseconds;
|
long positions = stopwatch.ElapsedMilliseconds;
|
||||||
//stopwatch.Restart();
|
stopwatch.Restart();
|
||||||
//_random.GenerateEmployees();
|
_random.GenerateEmployees();
|
||||||
//stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
//long employees = stopwatch.ElapsedMilliseconds;
|
long employees = stopwatch.ElapsedMilliseconds;
|
||||||
//stopwatch.Restart();
|
stopwatch.Restart();
|
||||||
//_random.GenerateOrders();
|
_random.GenerateOrders();
|
||||||
//stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
//long orders = stopwatch.ElapsedMilliseconds;
|
long orders = stopwatch.ElapsedMilliseconds;
|
||||||
//stopwatch.Restart();
|
stopwatch.Restart();
|
||||||
//_random.GenerateEmployeesOrders();
|
_random.GenerateEmployeesOrders();
|
||||||
//long employeesOrders = stopwatch.ElapsedMilliseconds;
|
long employeesOrders = stopwatch.ElapsedMilliseconds;
|
||||||
//stopwatch.Restart();
|
stopwatch.Restart();
|
||||||
//_random.GenerateMaterialOrders();
|
_random.GenerateMaterialOrders();
|
||||||
//stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
//long materialOrders = stopwatch.ElapsedMilliseconds;
|
long materialOrders = stopwatch.ElapsedMilliseconds;
|
||||||
_random.GenerateAdditionalMaterialOrders();
|
_random.GenerateAdditionalMaterialOrders();
|
||||||
//MessageBox.Show($"materials={materials}, positions={positions}, employees={employees}, orders={orders}, materialOrders={materialOrders}, employeeOrders={employeesOrders}", "Результаты");
|
MessageBox.Show($"materials={materials}, positions={positions}, employees={employees}, orders={orders}, materialOrders={materialOrders}, employeeOrders={employeesOrders}", "Результаты");
|
||||||
MessageBox.Show("Готово!");
|
MessageBox.Show("Готово!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user