public UserInterfaceModalResult ShowUpdate(UserInterfaceInfo info)
        {
            this.WaitReady();
            ManualResetEvent event2 = new ManualResetEvent(false);
            UpdatePiece      piece  = (UpdatePiece)this._uiForm.Invoke(new UserInterfaceForm.ConstructUpdatePieceDelegate(this._uiForm.ConstructUpdatePiece), new object[] { info, event2 });

            event2.WaitOne();
            return(piece.ModalResult);
        }
Пример #2
0
        public UserInterfaceModalResult ShowUpdate(UserInterfaceInfo info)
        {
            this.WaitReady();
            ManualResetEvent manualResetEvent = new ManualResetEvent(false);
            UpdatePiece      updatePiece      = (UpdatePiece)this._uiForm.Invoke((Delegate) new UserInterfaceForm.ConstructUpdatePieceDelegate(this._uiForm.ConstructUpdatePiece), (object)info, (object)manualResetEvent);

            manualResetEvent.WaitOne();
            return(updatePiece.ModalResult);
        }