public DaCMainDirector() { InitializeSupportedPokerClientList(); // Initialize the list of tables (no more than 20 concurrent games to begin with right?) tables = new List<Table>(20); // Initialize the database playerDatabase = new PlayerDatabase(); // Initialize the user configuration Globals.UserSettings = new DaCMainUserSettings(); // First execution? if (Globals.UserSettings.FirstExecution) { ShowFirstExecutionWizard(); // Reload settings Globals.UserSettings = new DaCMainUserSettings(); Globals.UserSettings.FirstExecution = false; // Save Globals.UserSettings.Save(); } // Get the poker client from the user settings ChangePokerClient(Globals.UserSettings.CurrentPokerClient); // Init windows listener windowsListener = new WindowsListener(this); windowsListener.ListenInterval = 200; windowsListener.StartListening(); // Init new files monitor newFilesMonitor = new NewFilesMonitor(Globals.UserSettings.HandHistoryDirectory, this); newFilesMonitor.StartMonitoring(); }
/* Change the hand history directory */ public void ChangeHandHistoryDirectory(String newDirectory) { Globals.UserSettings.StoredHandHistoryDirectory = newDirectory; // We need to create a new monitor newFilesMonitor = new NewFilesMonitor(Globals.UserSettings.HandHistoryDirectory, this); newFilesMonitor.StartMonitoring(); Trace.WriteLine("Changing hand history directory: " + Globals.UserSettings.HandHistoryDirectory); }