private void ItemCacheInstance_ItemsChanged(object sender, EventArgs e) { Character.InvalidateItemInstances(); Character.OnCalculationsInvalidated(); if (!Character.IsLoading) { ComparisonGraph.UpdateGraph(); } }
private void AsyncCalculationCompleted(object arg) { AsyncCalculationResult result = (AsyncCalculationResult)arg; if (result.DisplayCalculationValues != null && result.Calculations == referenceCalculation) { CalculationDisplay.SetCalculations(result.DisplayCalculationValues); // refresh chart ComparisonGraph.UpdateGraph(); asyncCalculation = null; } }