private void optimizer_ComputeUpgradesCompleted(object sender, ComputeUpgradesCompletedEventArgs e) { if (e.Cancelled) { ControlsEnabled(true); } else { AltProgress.Value = MainProgress.Value = 100; UpgradesComparison upgrades = new UpgradesComparison(e.Upgrades, null); Close(); upgrades.Show(); } }
void batchTools_UpgradeListCompleted(object sender, EventArgs e) { UpgradesComparison upgrades = new UpgradesComparison(batchTools.Upgrades, batchTools.CustomSubpoints); upgrades.Show(); }
private void optimizer_ComputeUpgradesCompleted(object sender, ComputeUpgradesCompletedEventArgs e) { if (e.Cancelled) ControlsEnabled(true); else { AltProgress.Value = MainProgress.Value = 100; UpgradesComparison upgrades = new UpgradesComparison(e.Upgrades, null); Close(); upgrades.Show(); } }
private void OpenSavedUpgradeList(object sender, RoutedEventArgs args) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Rawr Upgrade List Files|*.xml"; if (ofd.ShowDialog().GetValueOrDefault()) { DG_UpgradesComparison = new UpgradesComparison #if SILVERLIGHT (ofd.File.OpenText()); #else (new StreamReader(ofd.OpenFile())); #endif DG_UpgradesComparison.Closed += new EventHandler(DG_UpgradesComparison_Closed); DG_UpgradesComparison.Show(); } }