Example #1
0
        protected virtual void OnNipped(NippedEventArgs e)
        {
            var handler = Nipped;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
        void OnEntryTextChanged(object sender, NippedEventArgs args)
        {
            int tmp = 0;

            if (args.nip.Length == 4)
            {
                if (int.TryParse(args.nip, out tmp))
                {
                    IsValid = true;
                }
                else
                {
                    IsValid = false;
                }
            }
            else
            {
                IsValid = false;
            }
        }