public GenerationEquipment(UnificationEquipment equipment) : base(
         "ГО",
         "Generation Equipment",
         new Point(equipment.Location.X + offsetX, equipment.Location.Y + equipment.Height + offsetY))
 {
     center = GetCenter();
     CreateNodes();
     CreateArrows();
 }
 public EndingEquipment(UnificationEquipment equipment) : base(
         "ОАЛТ",
         "Ending Equipment",
         new Point(equipment.Location.X + equipment.Width + offsetX, equipment.Location.Y + equipment.Height / 2 - 25))
 {
     Width  = 140;
     center = GetCenter();
     CreateNodes();
     CreateArrows();
 }
예제 #3
0
        void AddElements()
        {
            UnificationEquipment unificationEquipment = new UnificationEquipment(signalNumber, new Point(400 + x, 20 + y));

            unificationEquipment.AddToForm(MainForm, lables);
            GenerationEquipment generationEquipment = new GenerationEquipment(unificationEquipment);

            generationEquipment.AddToForm(MainForm, lables);
            EndingEquipment endingEquipment = new EndingEquipment(unificationEquipment);

            endingEquipment.AddToForm(MainForm, lables);

            //FirstLevelEquipment firstEquipment = new FirstLevelEquipment(0, new Point(300, 20));
            //firstEquipment.AddToForm(MainForm, lables);
        }