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