Merging changes
This commit is contained in:
1 parent
c4216d2272
commit
797816be7e
437 files changed
+54228
-28
No files matched your search
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace BCG
|
||||
{
|
||||
/// <summary>
|
||||
/// Used by GridBindableBlueTable to
|
||||
/// </summary>
|
||||
public class BlueDataPropertyDescriptor : PropertyDescriptor
|
||||
{
|
||||
private ColumnInfo myColumnInfo;
|
||||
|
||||
public BlueDataPropertyDescriptor (ColumnInfo ci)
|
||||
: base (ci.colName, new Attribute[]{})
|
||||
{
|
||||
myColumnInfo = ci;
|
||||
}
|
||||
|
||||
public override bool IsReadOnly {get{return true;}}
|
||||
|
||||
public override Type PropertyType {get{return myColumnInfo.colType;}}
|
||||
|
||||
public override bool CanResetValue (object component) {return false;}
|
||||
|
||||
public override object GetValue (object component) {return (component as IBlueRow)[myColumnInfo.colName];}
|
||||
|
||||
public override void ResetValue(object component) {}
|
||||
|
||||
public override void SetValue(object component, object value) {}
|
||||
|
||||
public override bool ShouldSerializeValue(object component) {return false;}
|
||||
|
||||
public override Type ComponentType {get {return typeof(IBlueRow);}}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user