Exemplo n.º 1
0
        private void LinkLabelTextBoxLoad(object sender, EventArgs e)
        {
            int index = PropertyName.IndexOf("_", StringComparison.Ordinal);

            if (_entry == null)
            {
                PropertyName = PropertyName.Substring(0, index);
                return;
            }
            PropertyValue = _entry.GetType().GetProperty(PropertyName).GetValue(_entry);
            _propertyName = PropertyName;
            PropertyName  = PropertyName.Substring(0, index);
        }
Exemplo n.º 2
0
 public bool NameMatches(string search)
 {
     return(string.IsNullOrEmpty(search) ||
            PropertyName.IndexOf(search, StringComparison.OrdinalIgnoreCase) >= 0);
 }
Exemplo n.º 3
0
 private bool IsPropertyViaRelationship()
 {
     return(PropertyName.IndexOf(".") != -1);
 }
Exemplo n.º 4
0
 private bool IsPropertyReflective()
 {
     return(PropertyName.IndexOf("-") != -1);
 }
Exemplo n.º 5
0
 private bool IsPropertyReflective()
 {
     return(PropertyName.IndexOf("-") != -1 || (this.PropDef == null && this.ClassDef != null));
 }