internal IncomingChangesTreeView( WorkspaceInfo wkInfo, IncomingChangesTreeHeaderState headerState, List <string> columnNames, IncomingChangesViewMenu menu) : base(new TreeViewState()) { mWkInfo = wkInfo; mColumnNames = columnNames; mMenu = menu; multiColumnHeader = new MultiColumnHeader(headerState); multiColumnHeader.canSort = true; multiColumnHeader.sortingChanged += SortingChanged; customFoldoutYOffset = UnityConstants.TREEVIEW_FOLDOUT_Y_OFFSET; rowHeight = UnityConstants.TREEVIEW_ROW_HEIGHT; showAlternatingRowBackgrounds = true; }
internal IncomingChangesTreeView( WorkspaceInfo wkInfo, IncomingChangesTreeHeaderState headerState, IncomingChangesViewMenu menu) : base(new TreeViewState()) { mWkInfo = wkInfo; mMenu = menu; mColumnNames = new List <string>(); mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.PathColumn)); mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.SizeColumn)); mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.CreatedByColumn)); mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.DetailsColumn)); mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.ResolutionMethodColumn)); multiColumnHeader = new MultiColumnHeader(headerState); multiColumnHeader.canSort = true; multiColumnHeader.sortingChanged += SortingChanged; customFoldoutYOffset = UnityConstants.TREEVIEW_FOLDOUT_Y_OFFSET; rowHeight = UnityConstants.TREEVIEW_ROW_HEIGHT; showAlternatingRowBackgrounds = true; }