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; }
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); } } } }
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)); }
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 }); } }