Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jiowchern committed Feb 26, 2024
1 parent ff763a1 commit d332f63
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Docs/README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,18 +192,21 @@ class Controller
public enum SampleState { AccessState, GetState }
SampleState _SampleState;
delegate System.Func<string,string> _CommandHandler;
public void Start()
public Controller()
{
var sample = new Sample();
sample.AccessibleEvent += (access) =>{
_Sample = new Sample();
_Sample.AccessibleEvent += (access) =>{
_SampleState = SampleState.AccessState;
_CommandHandler = _CreateHandler(access);
};
sample.GetterEvent += (getter) =>{
_Sample.GetterEvent += (getter) =>{
_SampleState = SampleState.GetState;
_CommandHandler = _CreateHandler(getter);
};
sample.Start();
}
public void Start()
{
_Sample.Start();
}
// Get state
public SampleState GetSampleState()
Expand Down

0 comments on commit d332f63

Please sign in to comment.