public void AddRange(TreeColumnCollection list)
        {
            this.InnerList.AddRange(list);

            if (CollectionChanged != null)
            {
                CollectionChanged.Invoke(this, new CollectionChangeEventArgs(CollectionChangeAction.Add, list));
            }
        }
Beispiel #2
0
        public static TreeColumnCollection DefaultColumns()
        {
            //IList<Column> columns = new List<Column>();
            TreeColumnCollection columns = new TreeColumnCollection();

            columns.Add(new TreeColumn(Column.HillId, 40));
            columns.Add(new TreeColumn(Column.Date, 120));
            columns.Add(new TreeColumn(Column.Start, 80));
            columns.Add(new TreeColumn(Column.End, 80));
            columns.Add(new TreeColumn(Column.Time, 80));
            columns.Add(new TreeColumn(Column.ElevGain, 80));
            columns.Add(new TreeColumn(Column.AvgGrade, 60));
            columns.Add(new TreeColumn(Column.HillScoreCourseScoreCycling, 60));
            return(columns);
        }