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); }
public BusyState(SearcherStateContext ctx) : base(ctx) { }
public IdleState(SearcherStateContext ctx) : base(ctx) { }
public ExitState(SearcherStateContext ctx) : base(ctx) { }
public SearcherState(SearcherStateContext ctx) { Context = ctx; }