Ejemplo n.º 1
0
 private void OnSettingsPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "FileTrackingFolder")
     {
         _fileTrackingManager.Initialize("*.txt", NotifyFilters.LastWrite | NotifyFilters.FileName, Properties.Settings.Default.FileTrackingFolder);
     }
 }
Ejemplo n.º 2
0
 public MmForm()
 {
     _stopwatch           = new Stopwatch();
     _fileTrackingManager = new FileTrackingManager();
     _repository          = new ContextDbRepository(new HandHistoryContext());
     InitializeComponent();
     _formSettings = new FormSettings();
     _fileTrackingManager.PokerFileChanged += OnPokerFileChanged;
     _fileTrackingManager.Initialize("*.txt", NotifyFilters.LastWrite | NotifyFilters.FileName, "");
 }
Ejemplo n.º 3
0
 public MmLightForm()
 {
     _huds          = new Dictionary <string, HudForm>();
     _trackingState = false;
     InitializeComponent();
     _formSettings        = new FormSettings();
     _aboutForm           = new AboutForm();
     _fileTrackingManager = new FileTrackingManager();
     _fileTrackingManager.PokerFileChanged += OnPokerFileChanged;
     _fileTrackingManager.Initialize("*.txt", NotifyFilters.LastWrite | NotifyFilters.FileName, Settings.Default.FileTrackingFolder);
     Settings.Default.PropertyChanged += OnSettingsPropertyChanged;
     _allGames  = new List <Game>();
     _liveGames = new List <Game>();
 }