public FileSearcher()
        {
            Context = new SearcherStateContext();
            Context.SearcherThread = new Thread(ThreadStart);

            ProgressTimer          = new System.Timers.Timer(200);
            ProgressTimer.Elapsed += OnProgress;

            Context.SearcherThread.IsBackground = true;
            Context.SearcherThread.Start();

            SearchFinishedEvent += FileSearcher_SearchFinishedEvent;

            State = new IdleState(Context);
        }
Exemple #2
0
 public BusyState(SearcherStateContext ctx) : base(ctx)
 {
 }
Exemple #3
0
 public IdleState(SearcherStateContext ctx) : base(ctx)
 {
 }
Exemple #4
0
 public ExitState(SearcherStateContext ctx) : base(ctx)
 {
 }
Exemple #5
0
 public SearcherState(SearcherStateContext ctx)
 {
     Context = ctx;
 }