// ======================================================================== // Copyright 2007 - Volian Enterprises, Inc. All rights reserved. // Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE // ------------------------------------------------------------------------ // $Workfile: $ $Revision: $ // $Author: $ $Date: $ // // $History: $ // ======================================================================== using System; using System.Data; using System.Data.SqlClient; using Csla; using Csla.Data; using System.Configuration; using System.IO; using System.ComponentModel; using Csla.Validation; namespace VEPROMS.CSLA.Library { /// /// PropertyDescriptor Generated by MyGeneration using the CSLA Object Mapping template /// [Serializable()] public partial class vlnListPropertyDescriptor : PropertyDescriptor { protected object _Item = null; public vlnListPropertyDescriptor(System.Collections.IList collection, int index) : base("#" + index.ToString(), null) { _Item = collection[index]; } public override bool CanResetValue(object component) { return true; } public override Type ComponentType { get { return _Item.GetType(); } } public override object GetValue(object component) { return _Item; } public override bool IsReadOnly { get { return false; } } public override Type PropertyType { get { return _Item.GetType(); } } public override void ResetValue(object component) { ;} public override bool ShouldSerializeValue(object component) { return true; } public override void SetValue(object component, object value) { /*_Item = value*/;} //public override AttributeCollection Attributes //{ get { return new AttributeCollection(null); } } public override string DisplayName { get { return _Item.ToString(); } } public override string Description { get { return _Item.ToString(); } } public override string Name { get { return _Item.ToString(); } } } // Class public interface IVEHasBrokenRules { IVEHasBrokenRules HasBrokenRules { get; } BrokenRulesCollection BrokenRules { get; } } } // Namespace // The following are samples of ToString overrides // public partial class Owner // { public override string ToString() { return string.Format("{0}", _Name); } } // public partial class OwnerInfo // { public override string ToString() { return string.Format("{0}", _Name); } }