Example #1
0
 private void ffxiAH_MouseUp(object sender, MouseButtonEventArgs e)
 {
     if (!ffxiah_button.Focusable)
     {
         ThreadManager.ThreadRunner(LookupPriceXiAh);
     }
 }
Example #2
0
 public void StartBuying()
 {
     CampahStatus.Instance.Status = "Beginning Buy Procedure";
     CampahStatus.Instance.Mode   = Modes.Buying;
     RunningData.Instance.CalculateProjectedCost();
     RunningData.Instance.TotalSpent = 0;
     if (CampahStatus.Instance.BlockCommands)
     {
         FFACEInstance.Instance.Windower.SendString("//mouse_blockinput;keyboard_blockinput;");
     }
     ThreadManager.ThreadRunner(BuyProceedure);
 }
Example #3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrEmpty(Properties.Settings.Default.lastfile))
     {
         CampahStatus.Instance.CurrentPath = Properties.Settings.Default.lastfile;
         if (CampahStatus.Instance.OpenLast)
         {
             settingsManager.LoadBidList(CampahStatus.Instance.CurrentPath);
         }
     }
     if (App.mArgs != null && App.mArgs.Length > 0 && App.mArgs[0] == "updated")
     {
         ThreadManager.ThreadRunner(Deleteold);
     }
 }
Example #4
0
 private void button_UpdateAHdatabase_Click(object sender, RoutedEventArgs e)
 {
     if (CampahStatus.Instance.Mode == Modes.Stopped)
     {
         var result = MessageBox.Show("The process takes about 3-10 mins to complete, depending on your computer's speed.\r\nMake sure you are within click range of an auction house and do not press any keys while it is working\r\n\r\nContinuing this operation will overwrite the current database, would you like to continue?", "Confirm Overwrite", MessageBoxButton.YesNo, MessageBoxImage.Question);
         if (result == MessageBoxResult.Yes)
         {
             ThreadManager.ThreadRunner(CreateAhResourcesXml);
         }
     }
     else
     {
         interactionManager.StopBuying("Stopped updating, reverting to previous database.", CreateAhResourcesXml);
     }
 }
Example #5
0
 public FileIO(AutoCompleteTextBox tbBuyItemSelect)
 {
     ThreadManager.ThreadRunner(loadAHResourcesXML);
     this.tbBuyItemSelect = tbBuyItemSelect;
 }