示例#1
0
        private void goToNodeFromMemberButton_Click(object sender, EventArgs e)
        {
            ProxyPropertyBase proxy = memberListBox.SelectedItems.Cast <ProxyPropertyBase>().FirstOrDefault();

            if (proxy == null)
            {
                return;
            }

            MyNode node = DashboardViewModel.GetProperty(proxy.PropertyId).Node;

            GoToNode(sender, node);
        }
示例#2
0
 public virtual void RemoveProperty(ProxyPropertyBase proxy)
 {
     Dashboard.Remove(proxy.GenericSourceProperty as TProperty);
 }
示例#3
0
 public override void RemoveProperty(ProxyPropertyBase proxy)
 {
     Dashboard.Get(proxy.PropertyId).Clear();
     base.RemoveProperty(proxy);
 }
示例#4
0
        protected override PropertyDescriptor GetDescriptor(DashboardPropertyGroup property, Attribute[] attributes)
        {
            ProxyPropertyBase proxy = property.GenericProxy;

            return(new ProxyPropertyDescriptor(ref proxy, attributes));
        }
 public ProxyPropertyDescriptor(ref ProxyPropertyBase proxy, Attribute[] attrs)
     : base(proxy.Name, attrs)
 {
     Proxy = proxy;
 }