开发者

Interface issue

i added a property 'WrmVersion' in interface IResourcePolicy but i am not getting those thing in the implementation side means here it should come in the List view data. means SubItems.Add(((IResourcePolicy)Data).WrmVersion is not getting

This is the interface

public interface IResourcePolicy
   {
          DataVersion WrmVersion
       {
           get;
           set;
       }
          bool ResourcePolicyEnabled
      {
         get;
         set;
      }

  } 

i am implementing it in

   public new IResourcePolicy Data
         {
            get
            {
               return (IResourcePolicy)base.Data;
            }
         }


 开发者_如何学编程 protected override void OnUpdate()
         {


if(Data != null)
               {
                  Text = base.Data.Name;
                  if(SubItems.Count == 1)
                  {
                     SubItems.Add(((IResourcePolicy)Data).ResourcePolicyEnabled.ToString());

}


Yes it is i am referencing Old DLL ,,what actually happened is i created test application added only relevant forms to test application.So i need to copy the Dll from test application to Original side

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜