예제 #1
0
        public FileData(FileLoader loader)
        {
            m_loader = loader;
            m_loader.Storage.OnNewData += OnUpdatedContents;
            m_contents = new StoredFile(m_loader.Storage, m_loader.Id);

            m_searcher  = m_loader.Storage.MakeSearcher(m_loader.Id);
            FindResults = new ObservableCollection <CompressedFileSearcher.MatchResult>();

            m_findResultsTimer = new DispatcherTimer {
                Interval = TimeSpan.FromMilliseconds(250)
            };
            m_findResultsTimer.Tick += CheckForNewResults;
            m_findResultsTimer.Start();

            CanStartFind = true;
        }
예제 #2
0
        public FileData(FileLoader loader)
        {
            m_loader = loader;
            m_loader.Storage.OnNewData += OnUpdatedContents;
            m_contents = new StoredFile(m_loader.Storage, m_loader.Id);

            m_searcher = m_loader.Storage.MakeSearcher(m_loader.Id);
            FindResults = new ObservableCollection<CompressedFileSearcher.MatchResult>();

            m_findResultsTimer = new DispatcherTimer {Interval = TimeSpan.FromMilliseconds(250)};
            m_findResultsTimer.Tick += CheckForNewResults;
            m_findResultsTimer.Start();

            CanStartFind = true;
        }
예제 #3
0
 public Line(string l, long number, StoredFile parent)
 {
     m_line       = l;
     m_lineNumber = number;
     m_parent     = parent;
 }
예제 #4
0
 public Line(string l, long number, StoredFile parent)
 {
     m_line = l;
     m_lineNumber = number;
     m_parent = parent;
 }