Beispiel #1
0
        protected string[] GetPopupListBoxItems()
        {
            var values = new HashSet <string>(StringComparer.CurrentCultureIgnoreCase);

            var allocTo = new NeedAttributeValuesEventArgs(Task.Attribute.AllocatedTo);

            NeedAttributeValues(this, allocTo);

            if (allocTo.values != null)
            {
                values.UnionWith(allocTo.values);
            }

            var allocBy = new NeedAttributeValuesEventArgs(Task.Attribute.AllocatedBy);

            NeedAttributeValues(this, allocBy);

            if (allocBy.values != null)
            {
                values.UnionWith(allocBy.values);
            }

            return(values.ToArray());
        }
 private void OnNeedAttributeList(object sender, NeedAttributeValuesEventArgs e)
 {
     ContentControlWnd.ParentNotify notify = new ContentControlWnd.ParentNotify(m_HwndParent, Handle);
     e.values = notify.GetAttributeValues(e.attrib);
 }