Structured Shutdown - Cancelable events with CAB

本文介绍了一种使用EventBroker实现的复合决策机制,用于决定Composite Application Block (CAB) 应用是否应该关闭。该机制超越了简单的FormClosing事件处理,允许基于视图状态和工作项的状态来决定是否关闭应用程序。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Structured Shutdown - Cancelable events with CAB

Published 07 octubre 06 05:03 p.m. | matiaswoloski 

A recurring question on the CAB/SCSF community is how to perform a voting mechanism to close an application. The FormClosing event allow us to decide wether or not we will let the shell form close. However this is not enough because you might want to decide to close or not based on the state of the views or workitems.

I came up with a simple solution to this using the EventBroker:

Download here

Filed under: CAB

转载于:https://www.cnblogs.com/drj18/archive/2006/10/25/539789.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值