Пример #1
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,"");
 }
Пример #2
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>();
 }