public DataEntryPropertyDescriptor(DataEntry entry, RuleBase rule)
     : base(typeof(DataEntryCollection), entry.Text, entry.Value == null ? typeof(object): entry.Value.GetType(), null)
 {
     this.entry = entry;
     this.rule  = rule;
 }
 public DataEntryPropertyDescriptor(DataEntry entry, RuleBase rule)
     : base(typeof(DataEntryCollection), entry.Text, entry.Value == null ? typeof(object): entry.Value.GetType(), null)
 {
     this.entry = entry;
     this.rule = rule;
 }
Exemplo n.º 3
0
        internal void RunParentRemotely(RuleBase rule)
        {
            string path = rule.Parent.FullPath;
            Remote.MessageInfo[] a = remote.Run(path);
            DataEntry de = new DataEntry(Resources.Mode, Resources.Wow);
            if (a == null)
            {
                Add(rule, Resources.WowNotImplemented, de);
            }
            else
            {
                foreach (Remote.MessageInfo m in a)
                {
                    RuleBase r = m.Path == path ? rule : GetRule(m.Path);

                    foreach (DataEntryCollection c in m.Data)
                    {
                        Add(r, m.Text, c.ToArray(), de);
                    }
                }
            }
        }
Exemplo n.º 4
0
        private void AddInternal(RuleBase parent, string text, DataEntry[] de, DataEntry[] data)
        {
            foreach (Message m in messagesListView.Items)
            {
                if (m.Parent == parent && m.Text == text)
                {
                    m.Data.Add(new DataEntryCollection(parent, de, data));

                    return;
                }
            }

            messagesListView.Items.Add(new Message(parent, text, de, data));
        }
Exemplo n.º 5
0
 internal void Add(RuleBase parent, string text, DataEntry[] de, params DataEntry[] data)
 {
     if (remoted)
     {
         AddInternal(parent, text, de, data);
     }
     else
     {
         Invoke(new Action<RuleBase, string, DataEntry[], DataEntry[]>(AddInternal), new object[] { parent, text, de, data });
     }
 }