예제 #1
0
        void OnStateComplete(object sender, EventArgs e)
        {
            WorkerState state = sender as WorkerState;

            if (null != state)
            {
                state.StateComplete -= OnStateComplete;
            }

            state = StateFactory(state);

            if (null != state)
            {
                ExecuteState(state);
            }
        }
예제 #2
0
 abstract public WorkerState StateFactory(WorkerState args = null);