private void Stats_OnStatChanged(object sender, StatModEventArgs e) { if (loading) { return; } ChangeTextBox(e.Attr, e.Value); ChangeLabel(e.Attr, e.Value); }
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(); }
private void CalcStats_OnStatChanged(object sender, StatModEventArgs e) { build.CalcScore(statPreview.Stats, statTotal.Stats); }
private void ScoreStats_OnStatChanged(object sender, StatModEventArgs e) { RecheckPreview(); }