Esempio n. 1
0
        public QuickSortGroup(SignitureItem pivotItem, IEnumerable <SignitureItem> unsortedLines, int rankOffset, PhraseSorter mothership)
        {
            _mothership    = mothership;
            PivotItem      = pivotItem;
            _rankOffset    = rankOffset;
            _unsortedLines = unsortedLines.ToList();
            _betterLines   = new List <SignitureItem>();
            _worseLines    = new List <SignitureItem>();

            foreach (SignitureItem item in AllItems)
            {
                item.Rank = rankOffset;
            }
        }
Esempio n. 2
0
 public MainViewModel(IEnumerable <SignitureItem> items, string savePath)
 {
     _savePath = savePath;
     _sorter   = new PhraseSorter(items);
     UpdateCurrentFight();
 }