//-------------------------------------------------- public Factory(TimeWork timeWork) { this.TimeWork = timeWork; helpedLines = new MyLine[15]; GenerateEndMachines = new Machine[2]; MyTechnoLines = new ObservableCollection <TechnoLine>(); TimeGenerate = 3; CountOfDoneDetail = 0; CountOfGeneratedDetail = 0; initsializeLine(); initsializeFactory(); MayWork = true; }
public void initsializeLine() { int x = 200, y1 = 75, y2 = 175, y3 = 275; for (int i = 0; i < 3; i++) { helpedLines[i] = new MyLine(x, y1, x + 50, y1); helpedLines[i + 3] = new MyLine(x, y2, x + 50, y2); helpedLines[i + 6] = new MyLine(x, y3, x + 50, y3); x += 100; } helpedLines[9] = new MyLine(75, 150, 150, 75); helpedLines[10] = new MyLine(100, 175, 150, 175); helpedLines[11] = new MyLine(75, 200, 150, 275); helpedLines[12] = new MyLine(500, 75, 575, 150); helpedLines[13] = new MyLine(500, 175, 550, 175); helpedLines[14] = new MyLine(500, 275, 575, 200); }