コード例 #1
0
        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);
        }
コード例 #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);
        }