Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }