public GanttRow CreateGanttRow(GanttRowGroup rowGroup, string name) { var rowHeader = new GanttRowHeader() { Name = name }; var row = new GanttRow() { RowHeader = rowHeader, Tasks = new ObservableCollection <GanttTask>() }; rowGroup.Rows.Add(row); return(row); }
public GanttRow CreateGanttRow(GanttRowGroup rowGroup, string name) { if (rowGroup is null) { throw new ArgumentNullException(nameof(rowGroup)); } if (string.IsNullOrEmpty(name)) { throw new ArgumentException(nameof(name)); } GanttRowHeader rowHeader = new GanttRowHeader() { Name = name }; var row = new GanttRow() { RowHeader = rowHeader, Tasks = new ObservableCollection <GanttTask>() }; rowGroup.Rows.Add(row); return(row); }