public override void AddLogic(ICoatingScheduleLogic newController = null) { CoatingScheduleDay newLogic; if (newController != null) { newLogic = (CoatingScheduleDay)newController; } else { newLogic = new CoatingScheduleDay(); newLogic.Date = GetNextDay(); } ChildrenLogic.Add(newLogic); newLogic.Connect(this); if (Control != null) { Control.AddControlToBottom(newLogic); } UpdateDateText(); }
public void RemoveDay(CoatingScheduleDay day) { ChildrenLogic.Remove(day); UpdateDateText(); }