示例#1
0
 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();
     }
 }
示例#2
0
		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();
     }
 }
示例#4
0
        void batchTools_UpgradeListCompleted(object sender, EventArgs e)
        {
            UpgradesComparison upgrades = new UpgradesComparison(batchTools.Upgrades, batchTools.CustomSubpoints);

            upgrades.Show();
        }
示例#5
0
        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();
            }
        }