public override void createVinosku(int indexx) { if (inbox) { //поиск целевого шкафа int index = ((boxes)Schemes_Editor.mainWorkList.Find(x => x is boxes && ((boxes)x).equipInside.Exists(y => y.localID == localID))).equipInside.IndexOf(this) + 1; vinoska[indexx] = new Vinoska(labels[indexx], new Point(locations[2].X + scales[2].X / 2, locations[2].Y + scales[2].Y / 2), locations[Schemes_Editor.sheetIndex], new Point(locations[Schemes_Editor.sheetIndex].X + 30, locations[Schemes_Editor.sheetIndex].Y)); } }
public override void rebuildVinosku(int index) { if (vinoska != null && vinoska[index] != null) { Point a = vinoska[index].startPoint; Point b = vinoska[index].vertex1; Point c = vinoska[index].vertex2; Point newA = new Point(locations[2].X + scales[2].X / 2, locations[2].Y + scales[2].Y / 2); Point newB = new Point(newA.X + b.X - a.X, newA.Y + b.Y - a.Y); Point newc = new Point(newB.X + c.X - b.X, newB.Y + c.Y - b.Y); vinoska[index] = new Vinoska(vinoska[index].text, newA, newB, newc); } }
public override void createVinosku(int index) { //поиск целевого шкафа vinoska[index] = new Vinoska(labels[index], new Point(locations[2].X + scales[2].X / 2, locations[2].Y + scales[2].Y / 2), locations[Schemes_Editor.sheetIndex], new Point(locations[Schemes_Editor.sheetIndex].X + 30, locations[Schemes_Editor.sheetIndex].Y)); }
public void createVinosku(Point p, int index) { //поиск целевого шкафа vinoska[index] = new Vinoska(labels[index], p, new Point(p.X, p.Y - 100), new Point(p.X + 100, p.Y - 100)); }