c-sharp sample help

Implementation example
  var sm = new xxxxControl();
  sm.Start();
  while(!sm.IsEnd())
  {
    sm.Update();
  }