internal void OnCustomFilterText(MyFilterEventArgs args)
 {
     if (customFilterHandler != null)
     {
         customFilterHandler(this, args);
     }
 }
 private void TokenEdit_CustomFilterText(object sender, MyFilterEventArgs e)
 {
     if (this.checkEdit1.Checked)
     {
         e.IsValidToken = e.Token.Description.Contains("Morais");
     }
 }
        private IList GetCustomFilterSource()
        {
            IList list = GetCustomFilterSourceCore();
            List <TokenEditToken> newList = new List <TokenEditToken>();
            MyTokenEdit           edit    = this.OwnerEdit as MyTokenEdit;

            for (int i = 0; i < list.Count; i++)
            {
                MyFilterEventArgs args = new MyFilterEventArgs(list[i] as TokenEditToken);
                edit.OnCustomFilterText(args);
                if (args.IsValidToken)
                {
                    newList.Add(list[i] as TokenEditToken);
                }
            }
            return(newList);
        }
 internal void OnCustomFilterText(MyFilterEventArgs args)
 {
     this.Properties.OnCustomFilterText(args);
 }