Exemple #1
0
        static void tBox_TextChanged(object sender, EventArgs e)
        {
            if (_isInit || _lastti == null || !_lastti.IsDisposed)
            {
                return;
            }

            usrMultiTextItem ti = new usrMultiTextItem((TextBox)sender);

            _lastti = ti;
        }
Exemple #2
0
        static void tBox_GotFocus(object sender, EventArgs e)
        {
            if (_isInit)
            {
                return;
            }

            TextBox tbox = (TextBox)sender;

            if ((_curr != null & tbox.Equals(_curr)))               // || (_lastti != null && tbox.Equals(_lastti.tbox)) )
            {
                return;
            }

            _curr = tbox;
            usrMultiTextItem ti = new usrMultiTextItem(tbox);

            _lastti = ti;
        }
Exemple #3
0
        //public static bool operator == (usrMultiTextItem left, usrMultiTextItem right)
        //{
        //    if (left == null)
        //    {
        //        return right == null;
        //    }
        //    return left.tbox.Equals(right.tbox);
        //}

        //public static bool operator !=(usrMultiTextItem left, usrMultiTextItem right)
        //{
        //    return !left.tbox.Equals(right.tbox);
        //}

        public bool Equals(usrMultiTextItem TextItem)
        {
            return(this == TextItem);
        }