[英]Why are some page/application methods in EwfPage and others in EwfUiStatics?
I've been using EWL for some time now and I feel as though there is an inconsistency. 我已经使用EWL一段时间了,感觉好像有一个不一致的地方。 Some actions, like adding a status message is done via the
EwfPage
instance and others such as adding a page-level Action is done via EwfUiStatics
. 有些动作(例如,添加状态消息)是通过
EwfPage
实例完成的,而其他动作(例如,添加页面级Action)是通过EwfUiStatics
完成的。
Why aren't all of these similar methods in one place or another? 为什么所有这些相似的方法都不会放在一个地方或另一个地方? One guess I have is that possibly the methods that are on
EwfPage
require the instance (and the others are static). 我的一个猜测是,
EwfPage
上的方法可能需要实例(其他方法是静态的)。 But that reason would be refuted by the fact that the property EwfPage.Instance
exists, always giving you a static handle on those methods. 但是,该事实将被属性
EwfPage.Instance
存在的事实所驳斥,该属性始终为您提供这些方法的静态句柄。
EwfPage
成员可以在所有页面上使用,而EwfUiStatics
成员只能在企业Web框架用户界面(EWF UI)页面上使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.