public UserInterfaceModalResult ShowMaintenance(UserInterfaceInfo info, MaintenanceInfo maintenanceInfo)
        {
            this.WaitReady();
            ManualResetEvent event2 = new ManualResetEvent(false);
            MaintenancePiece piece  = (MaintenancePiece)this._uiForm.Invoke(new UserInterfaceForm.ConstructMaintenancePieceDelegate(this._uiForm.ConstructMaintenancePiece), new object[] { info, maintenanceInfo, event2 });

            event2.WaitOne();
            return(piece.ModalResult);
        }
Beispiel #2
0
        public UserInterfaceModalResult ShowMaintenance(UserInterfaceInfo info, MaintenanceInfo maintenanceInfo)
        {
            this.WaitReady();
            ManualResetEvent manualResetEvent = new ManualResetEvent(false);
            MaintenancePiece maintenancePiece = (MaintenancePiece)this._uiForm.Invoke((Delegate) new UserInterfaceForm.ConstructMaintenancePieceDelegate(this._uiForm.ConstructMaintenancePiece), (object)info, (object)maintenanceInfo, (object)manualResetEvent);

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