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; }
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; }
public void Close(object sender, RoutedEventArgs e) { Instance = null; MainPage.Instance.UnloadBatchCharacter(); App.Current.CloseWindow(this); }