Exemple #1
0
        public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            StringCollection values = null;

            if (context != null && context.Instance != null && context.Instance is DataBindingRuleBase)
            {
                try
                {
                    object obj = null;
                    DataBindingRuleBase dataBindingRuleBase = (DataBindingRuleBase)context.Instance;
                    obj = dataBindingRuleBase.DataSource;
                    if (obj != null)
                    {
                        values = DataBindingHelper.GetDataSourceCoordinateFields(obj, dataBindingRuleBase.DataMember, dataBindingRuleBase.BindingField);
                    }
                }
                catch
                {
                }
            }
            return(new StandardValuesCollection(values));
        }
Exemple #2
0
 public DesignDataTableSource(MapCore mapCore, object originalDataSource)
 {
     DataBindingHelper.InitDesignDataTable(originalDataSource, string.Empty, this);
 }