简体   繁体   English

为什么在EwfPage中使用某些页面/应用程序方法,而在EwfUiStatics中使用其他方法?

[英]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.

相关问题 为什么有些异步方法需要Task的返回类型,而另一些则不需要 - Why do some async methods require a return type of Task, and others don't 我如何确定为什么我们的应用程序对某些人而不是其他人崩溃? - How do I determine why our application crashes for some people, but not others? 为什么更新其他记录时会删除一些记录? - Why is some records deleted when updating others? 为什么某些关闭方式比其他方式“友好”? - Why Are Some Closures 'Friendlier' Than Others? 为什么一些HtmlHelper方法实现为扩展方法 - Why are some HtmlHelper methods implemented as extension methods 为什么我的方法相互干扰并干扰 C# 中的 if 语句? - Why my methods interfering with each others and with if statements in C#? 为什么某些库可以从 localhost 连接而其他库则不可能? - Why is connecting from localhost by some libraries possible and by others not possible? 为什么有些应用程序锁定文件而另一些却不锁定? - Why do some applications lock files and others don't? 为什么将程序集中的某些类暴露给COM,而其他却不暴露给COM? - Why would some classes in an assembly be exposed to to COM but not others? 为什么有些 Enumerable 可以在 foreach 中更改,而有些则不能? - Why can some Enumerable be changed inside foreach, and others can't?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM