示例#1
0
        public BatchTools()
        {
            InitializeComponent();

            batchTools = new Rawr.BatchTools();
            batchTools.OverrideRegem            = OptimizerSettings.Default.OverrideRegem;
            batchTools.OverrideReenchant        = OptimizerSettings.Default.OverrideReenchant;
            batchTools.Thoroughness             = OptimizerSettings.Default.Thoroughness;
            batchTools.GreedyOptimizationMethod = OptimizerSettings.Default.GreedyOptimizationMethod;
            batchTools.OptimizationMethod       = OptimizerSettings.Default.OptimizationMethod;
            batchTools.TemplateGemsEnabled      = OptimizerSettings.Default.TemplateGemsEnabled;

            batchTools.OperationCompleted   += new EventHandler(batchTools_OperationCompleted);
            batchTools.StatusUpdated        += new EventHandler(batchTools_StatusUpdated);
            batchTools.UpgradeListCompleted += new EventHandler(batchTools_UpgradeListCompleted);

            DataContext = batchTools;

            Instance = this;
        }
示例#2
0
		public BatchTools()
		{
			InitializeComponent();

			batchTools = new Rawr.BatchTools();
			batchTools.OverrideRegem = OptimizerSettings.Default.OverrideRegem;
			batchTools.OverrideReenchant = OptimizerSettings.Default.OverrideReenchant;
            batchTools.OverrideReforge = OptimizerSettings.Default.OverrideReforge;
			batchTools.Thoroughness = OptimizerSettings.Default.Thoroughness;
			batchTools.GreedyOptimizationMethod = OptimizerSettings.Default.GreedyOptimizationMethod;
			batchTools.OptimizationMethod = OptimizerSettings.Default.OptimizationMethod;
			batchTools.TemplateGemsEnabled = OptimizerSettings.Default.TemplateGemsEnabled;

			batchTools.OperationCompleted += new EventHandler(batchTools_OperationCompleted);
			batchTools.StatusUpdated += new EventHandler(batchTools_StatusUpdated);
			batchTools.UpgradeListCompleted += new EventHandler(batchTools_UpgradeListCompleted);

			DataContext = batchTools;

			Instance = this;
		}
示例#3
0
		public void Close(object sender, RoutedEventArgs e)
		{
			Instance = null;
			MainPage.Instance.UnloadBatchCharacter();
			App.Current.CloseWindow(this);
		}
示例#4
0
 public void Close(object sender, RoutedEventArgs e)
 {
     Instance = null;
     MainPage.Instance.UnloadBatchCharacter();
     App.Current.CloseWindow(this);
 }