示例#1
0
 public override void AddLogic(ICoatingScheduleLogic newController = null)
 {
     if (newController == null)
     {
         foreach (string coatingLine in StaticFactoryValuesManager.CoatingLines)
         {
             CoatingScheduleShift newLogic = new CoatingScheduleShift();
             newLogic.CoatingLine = coatingLine;
             ChildrenLogic.Add(newLogic);
             newLogic.Connect(this);
             if (Control != null)
             {
                 Control.AddControlToBottom(newLogic);
             }
         }
     }
     else
     {
         ChildrenLogic.Add(newController);
         newController.Connect(this);
         if (Control != null)
         {
             Control.AddControlToBottom(newController);
         }
     }
 }
示例#2
0
 public override void AddControlToTop(ICoatingScheduleLogic newLogic)
 {
     ChildrenLogic.Insert(0, newLogic);
     newLogic.Connect(this);
     Control.AddControlToTop(newLogic);
     SpreadUnits();
 }
        public void AddControlToTop(ICoatingScheduleLogic logic)
        {
            DayControl newDay = new DayControl();

            DayControls.Insert(0, newDay);
            logic.Connect(newDay);
            newDay.Connect(this);
        }
        public void AddControlToBottom(ICoatingScheduleLogic logic)
        {
            DayControl newDay = new DayControl();

            DayControls.Add(newDay);
            logic.Connect(newDay);
            newDay.Connect(this);
        }
示例#5
0
        public void AddControlToBottom(ICoatingScheduleLogic logic)
        {
            ProductControlBase newControl = ProductControlBase.CreateControl(logic);

            ProductControls.Add(newControl);
            logic.Connect(newControl);
            newControl.Connect(this);
        }
示例#6
0
        public void AddControlToTop(ICoatingScheduleLogic logic)
        {
            LineControl newControl = new LineControl(logic)
            {
                VerticalAlignment = VerticalAlignment.Top
            };

            LineControls.Insert(0, newControl);
            logic.Connect(newControl);
            newControl.Connect(this);
        }
        public void AddControlToBottom(ICoatingScheduleLogic logic)
        {
            ShiftControl newControl = new ShiftControl(logic)
            {
                VerticalAlignment = VerticalAlignment.Top
            };

            ShiftControls.Add(newControl);
            logic.Connect(newControl);
            newControl.Connect(this);
        }
示例#8
0
        public void AddControlToTop(ICoatingScheduleLogic logic)
        {
            ProductControlBase newControl = ProductControlBase.CreateControl(logic);

            if (newControl != null)
            {
                ProductControls.Insert(0, newControl);
                logic.Connect(newControl);
                newControl.Connect(this);
            }
        }
示例#9
0
 public override void AddControlToBottom(ICoatingScheduleLogic upChild)
 {
     ChildrenLogic.Add(upChild);
     upChild.Connect(this);
     Control.AddControlToBottom(upChild);
 }