46 lines
2.0 KiB
C#
46 lines
2.0 KiB
C#
// ========================================================================
|
|
// 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.ComponentModel;
|
|
using Csla.Validation;
|
|
namespace VEPROMS.CSLA.Library
|
|
{
|
|
/// <summary>
|
|
/// PropertyDescriptor Generated by MyGeneration using the CSLA Object Mapping template
|
|
/// </summary>
|
|
[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) => true;
|
|
public override Type ComponentType => _Item.GetType();
|
|
public override object GetValue(object component) => _Item;
|
|
public override bool IsReadOnly => false;
|
|
public override Type PropertyType => _Item.GetType();
|
|
public override void ResetValue(object component)
|
|
{ ;}
|
|
public override bool ShouldSerializeValue(object component) => true;
|
|
public override void SetValue(object component, object value)
|
|
{ /*_Item = value*/;}
|
|
public override string DisplayName => _Item.ToString();
|
|
public override string Description => _Item.ToString();
|
|
public override string Name => _Item.ToString();
|
|
} // Class
|
|
public interface IVEHasBrokenRules
|
|
{
|
|
IVEHasBrokenRules HasBrokenRules { get; }
|
|
BrokenRulesCollection BrokenRules { get; }
|
|
}
|
|
} // Namespace
|