예제 #1
0
        internal RepositoriesListView(
            RepositoriesListHeaderState headerState,
            List <string> columnNames,
            Action doubleClickAction)
            : base(new TreeViewState())
        {
            mColumnNames       = columnNames;
            mDoubleClickAction = doubleClickAction;

            multiColumnHeader                 = new MultiColumnHeader(headerState);
            multiColumnHeader.canSort         = true;
            multiColumnHeader.sortingChanged += SortingChanged;

            mColumnComparers = RepositoriesTableDefinition.BuildColumnComparers();

            rowHeight = UnityConstants.TREEVIEW_ROW_HEIGHT;
            showAlternatingRowBackgrounds = false;
        }
예제 #2
0
        internal RepositoriesListView(
            RepositoriesListHeaderState headerState,
            Action doubleClickAction)
            : base(new TreeViewState())
        {
            multiColumnHeader                 = new MultiColumnHeader(headerState);
            multiColumnHeader.canSort         = true;
            multiColumnHeader.sortingChanged += SortingChanged;

            mColumnNames = new List <string>();
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.NameColumn));
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.ServerColumn));

            mColumnComparers = RepositoriesTableDefinition.BuildColumnComparers();

            mDoubleClickAction = doubleClickAction;

            showAlternatingRowBackgrounds = true;
            rowHeight = UnityConstants.TREEVIEW_ROW_HEIGHT;
        }