Inheritance: System.EventArgs
コード例 #1
0
        private void ErrorStateChangedCallback(Int32 status, IntPtr cookie)
        {
            EventHandler <ErrorStateEventArgs> handlers = this.errorStateChanged;

            if (handlers != null)
            {
                ErrorStateEventArgs args = new ErrorStateEventArgs(status);
                handlers(this, args);
            }
        }
コード例 #2
0
ファイル: Context.cs プロジェクト: penyatree/openni
 private void ErrorStateChangedCallback(Int32 status, IntPtr cookie)
 {
     EventHandler<ErrorStateEventArgs> handlers = this.errorStateChanged;
     if (handlers != null)
     {
         ErrorStateEventArgs args = new ErrorStateEventArgs(status);
         handlers(this, args);
     }
 }
 private void context_ErrorStateChanged(object sender, ErrorStateEventArgs e)
 {
     onErrorOccured(sender, e.CurrentError);
     StopPlayback();
 }