public WeekPlannerRow Insert(int index, DataColumns ColumnRows, WeekPlannerItemCollection PlannerItem)
        {
            var row = RowAdd(ColumnRows, PlannerItem);

            base.Insert(index, row);
            _calendar.Invalidate();

            return(row);
        }
        private WeekPlannerRow RowAdd(DataColumns ColumnRows, WeekPlannerItemCollection PlannerItem)
        {
            var row = new WeekPlannerRow(_calendar);

            if (PlannerItem == null)
            {
                PlannerItem = new WeekPlannerItemCollection(_calendar);
            }

            foreach (var item in PlannerItem)
            {
                item.Calendar = _calendar;
            }

            row.Items   = PlannerItem;
            row.Columns = ColumnRows;

            return(row);
        }
        public WeekPlannerRow Add(DataColumns ColumnRows, WeekPlannerItemCollection PlannerItem)
        {
            var row = new WeekPlannerRow(_calendar);

            if (PlannerItem == null)
            {
                PlannerItem = new WeekPlannerItemCollection(_calendar);
            }

            foreach (var item in PlannerItem)
            {
                item.Calendar = _calendar;
            }

            row.Items   = PlannerItem;
            row.Columns = ColumnRows;

            base.Add(row);
            _calendar.Invalidate();
            return(row);
        }