/// <summary> /// Construct a passive data structure to hold chart information /// </summary> /// <param name="row"></param> /// <param name="dateTime"></param> /// <param name="task"></param> public ChartInfo(int row, DateTime dateTime, GanttChartTask task) : this() { Row = row; DateTime = dateTime; Task = task; }
/// <summary> /// Initialize a new instance of TaskPaintEventArgs with the editable default font and task paint format /// </summary> public TaskPaintEventArgs(Graphics graphics, Rectangle clipRect, GanttChart chart, GanttChartTask task, int row, bool critical, Font font, TaskFormat format) // need to create a paint event for each task for custom painting : base(graphics, clipRect, chart) { Task = task; Row = row; Font = font; Format = format; IsCritical = critical; }
/// <summary> /// Initialize a new instance of TaskDragDropEventArgs with the MouseEventArgs parameters and the Task involved and the previous mouse location. /// </summary> public TaskDragDropEventArgs(Point startLocation, Point prevLocation, GanttChartTask source, RectangleF sourceRect, GanttChartTask target, RectangleF targetRect, int row, MouseButtons buttons, int clicks, int x, int y, int delta) : base(buttons, clicks, x, y, delta) { this.Source = source; this.SourceRect = sourceRect; this.Target = target; this.TargetRect = targetRect; this.PreviousLocation = prevLocation; this.StartLocation = startLocation; this.Row = row; }
/// <summary> /// Initialize a new instance of TaskMouseEventArgs with the MouseEventArgs parameters and the Task involved. /// </summary> public TaskMouseEventArgs(GanttChartTask task, RectangleF rectangle, MouseButtons buttons, int clicks, int x, int y, int delta) : base(buttons, clicks, x, y, delta) { Task = task; Rectangle = rectangle; }