Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 public CustomPropertyDescriptor(ref CustomProperty myProperty, Attribute[] attrs)
     : base(myProperty.Name, attrs)
 {
     m_Property = myProperty;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Add CustomProperty to Collectionbase List
 /// </summary>
 /// <param name="Value"></param>
 public void Add(CustomProperty Value)
 {
     base.List.Add(Value);
 }
Exemplo n.º 5
0
 public CustomPropertyDescriptor(ref CustomProperty myProperty, Attribute[] attrs)
     : base(myProperty.Name, attrs)
 {
     m_Property = myProperty;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Add CustomProperty to Collectionbase List
 /// </summary>
 /// <param name="Value"></param>
 public void Add(CustomProperty Value)
 {
     base.List.Add(Value);
 }