示例#1
0
 private void Stats_OnStatChanged(object sender, StatModEventArgs e)
 {
     if (loading)
     {
         return;
     }
     ChangeTextBox(e.Attr, e.Value);
     ChangeLabel(e.Attr, e.Value);
 }
示例#2
0
        private void Sort_OnStatChanged(object sender, StatModEventArgs e)
        {
            // if we are generating builds, don't recalculate all the builds
            if (building)
            {
                return;
            }

            // "sort" as in, recalculate the whole number
            foreach (ListViewItem li in loadoutList.Items)
            {
                ListItemSort(li);
            }
            var lv  = loadoutList;
            var lvs = (ListViewSort)(lv).ListViewItemSorter;

            lvs.OnColumnClick(0, false, true);
            // actually sort the list, on points
            lv.Sort();
        }
示例#3
0
 private void CalcStats_OnStatChanged(object sender, StatModEventArgs e)
 {
     build.CalcScore(statPreview.Stats, statTotal.Stats);
 }
示例#4
0
 private void ScoreStats_OnStatChanged(object sender, StatModEventArgs e)
 {
     RecheckPreview();
 }