您好我有2个类的应用程序.xaml.cs和Valeur.xaml.cs同样的支持
Hello I have 2 classapplications.xaml.cs et Valeur.xaml.csin same backage
公共部分类申请:申请 { $ public static IdClient {get;组; }
public partial class applications : Application { public static IdClient{ get; set; }
}
公共部分类ListePrescriptions:UserControl {
public partial class ListePrescriptions : UserControl{
}
Liset.ClientId = applications.IdClient.Patient我有异常系统。 NullReferenceException,因为它不知道什么是应用程序
in the ligne Liset.ClientId = applications.IdClient.Patient I have exception System. NullReferenceException because it don't know what'is application
推荐答案
嗨kh.hajar,
Hi kh.hajar,
>>因为它不知道什么是应用程序
据我所知,Application类封装Silverlight应用程序(单例模式)。提供多种服务:应用程序生命周期,应用程序资源文件加载,未处理的异常和Web主机集成。
As far as I know, the Application class encapsulates a Silverlight application (singleton mode). Provide several services: application lifecycle, application resource file loading, unhandled exception, and Web host integration。
应用程序类: msdn.microsoft/en-us/library/system.windows.application(VS .95).aspx
>>患者我有异常系统。 NullReferenceException
你的Silverlight和sdk版本是否一致?
Does your Silverlight and sdk versions is consisten?
最好的问候,
Best Regards,
Yohann Lu
Yohann Lu
更多推荐
System.NullReferenceException
发布评论