private void sendStatusChanged()
 {
     StateEventArgs e = new StateEventArgs();
     e.Status = Status;
     MovieThreadUtil.InvokeLator(OnStateChanged, e);
 }
 public static void InvokeLator(StateMethod method, StateEventArgs e)
 {
     stateMethodQueue.Enqueue(method);
     stateArgsQueue.Enqueue(e);
 }
 private void OnStateChanged(StateEventArgs e)
 {
     if (StateChanged != null) {
         StateChanged(this, e);
     }
 }
 private void applyStateChaged(object sender, StateEventArgs e)
 {
     if (e.Status == State.Play) {
         closeBusyDialog();
     }
 }