private void Init(GanttUnit unit, DateTime timeFrom, DateTime timeTo) { _Unit = unit; _TimeFrom = timeFrom; _TimeTo = timeTo; this.colorList = new List <string> { "#FFF8DC", "#AFEEEE", "#FFFFF0", "#F0FFF0", "#FFFACD", "#F5FFFA", "#FFF5EE", "#F0FFFF", "#FFF0F5", "#F0F8FF", "#E6E6FA", "#FFE4E1", "#00CED1", "#B0C4DE", "#ADD8E6", "#B0E0E6", "#00FFFF", "#48D1CC", "#40E0D0", "#20B2AA" }; this.SetCellBorder(); }
public MyGridViewCellGantt(GanttUnit unit, DateTime timeFrom, DateTime timeTo) { InitializeComponent(); Init(unit, timeFrom, timeTo); }