private void tvwSections_AfterSelect(object sender, TreeViewEventArgs e) { ModuleProc PROC = new ModuleProc("", "tvwSections_AfterSelect"); try { _selectedClass = e.Node.Tag as RegClassName; var items = _config.KeyValues[_selectedClass.RefKeyName]; CustomClass values = new CustomClass(); foreach (var item in items) { object value = _config.GetObjectValue(_selectedClass.RefKeyName, item.Key); CustomProperty kv = new CustomProperty(item.Key, value, false, true); values.Add(kv); } pgrdKeyValues.SelectedObject = values; } catch (Exception ex) { Log.Exception(PROC, ex); } }
private void tvwSections_AfterSelect(object sender, TreeViewEventArgs e) { ModuleProc PROC = new ModuleProc("", "tvwSections_AfterSelect"); try { _selectedClass = e.Node.Tag as RegClassName; var items = _config.KeyValues[_selectedClass.RefKeyName]; CustomClass values = new CustomClass(); foreach (var item in items) { object value = _config.GetObjectValue(_selectedClass.RefKeyName, item.Key); CustomProperty kv = new CustomProperty(item.Key, value, false, true); values.Add(kv); } pgrdKeyValues.SelectedObject = values; } catch (Exception ex) { Log.Exception(PROC, ex); } }
public CustomPropertyDescriptor(ref CustomProperty myProperty, Attribute[] attrs) : base(myProperty.Name, attrs) { m_Property = myProperty; }
/// <summary> /// Add CustomProperty to Collectionbase List /// </summary> /// <param name="Value"></param> public void Add(CustomProperty Value) { base.List.Add(Value); }
public CustomPropertyDescriptor(ref CustomProperty myProperty, Attribute[] attrs) : base(myProperty.Name, attrs) { m_Property = myProperty; }
/// <summary> /// Add CustomProperty to Collectionbase List /// </summary> /// <param name="Value"></param> public void Add(CustomProperty Value) { base.List.Add(Value); }