Пример #1
0
 /// <summary>
 /// Raises the GetLookupValues event.
 /// </summary>
 private void OnGetLookupValues(ITypeDescriptorContext context, ICollection <string> lookupValues)
 {
     if (this.GetLookupValues != null)
     {
         StringLookupGetValuesEventArgs args = new StringLookupGetValuesEventArgs(context, lookupValues);
         GetLookupValues(this, args);
     }
 }
Пример #2
0
        private void UserId_GetLookupValues(object sender, StringLookupGetValuesEventArgs args)
        {
            if (!Object.Equals(args.Context.Instance, this))
            {
                return;
            }

            if (this.GetUserIdValues != null)
            {
                GetUserIdValues(this, args);
            }
        }
Пример #3
0
        private void DatasourceAddress_GetLookupValues(object sender, StringLookupGetValuesEventArgs args)
        {
            if (!Object.Equals(args.Context.Instance, this))
            {
                return;
            }

            if (this.GetDatasourceAddressValues != null)
            {
                GetDatasourceAddressValues(this, args);
            }
        }