public WeekPlannerRow Insert(int index, DataColumns ColumnRows, WeekPlannerItemCollection PlannerItem) { var row = RowAdd(ColumnRows, PlannerItem); base.Insert(index, row); _calendar.Invalidate(); return(row); }
public WeekPlannerHeader() { _columns = new DataColumns(); _headerColumnsFont = new Font("Times New Roman", 8F, FontStyle.Bold); _headerDatesFont = new Font("Times New Roman", 8F, FontStyle.Bold); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.Selectable, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); }
public WeekPlannerGrid() { listRows = new WeekPlannerRowCollection(this); _columns = new DataColumns(this); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.Selectable, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); _itemFont = _gridFont = new Font("Times New Roman", 8F, FontStyle.Bold); AutoScroll = true; AutoScrollMinSize = new Size(10, GridCellHeight); // drawing for an area of 100 x GridCellHeight }
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); }