/* 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(); WriteDebug(WRITE_DEBUG, "Changing hand history directory: " + Globals.UserSettings.HandHistoryDirectory); }
private Object createTableLock = new Object(); // Used for thread safety synchronization public PokerMuckDirector() { StartDebugging(); 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 PokerMuckUserSettings(); string path = System.Configuration.ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath; WriteDebug(WRITE_DEBUG, "PerUserRoamingAndLocal: " + path); path = System.Configuration.ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).FilePath; WriteDebug(WRITE_DEBUG, "None: " + path); path = System.Configuration.ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoaming).FilePath; WriteDebug(WRITE_DEBUG, "PerUserRoaming: " + path); // First execution? if (Globals.UserSettings.FirstExecution) { ShowFirstExecutionWizard(); // Reload settings Globals.UserSettings = new PokerMuckUserSettings(); 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(); }
private Object createTableLock = new Object(); // Used for thread safety synchronization public PokerMuckDirector() { 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 PokerMuckUserSettings(); // First execution? if (Globals.UserSettings.FirstExecution) { ShowFirstExecutionWizard(); // Reload settings Globals.UserSettings = new PokerMuckUserSettings(); 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(); }