Esempio n. 1
0
        public void SetWorkingCard(string cardUID)
        {
            workingCardID = cardUID;

            var tagfilter = new MemberFilter()
            {
                filtertype = MemberFilterTypes.Tag,
                data       = cardUID
            };

            memTagIO.GetMember(new List <MemberFilter>()
            {
                tagfilter
            }, getMember_Callback);
        }
Esempio n. 2
0
        private void searchBtn_Click(object sender, EventArgs e)
        {
            List <MemberFilter> filters = new List <MemberFilter>();

            if (txtName.Text != "")
            {
                filters.Add(new MemberFilter()
                {
                    data       = txtName.Text,
                    filtertype = MemberFilterTypes.Name
                });
            }

            if (txtPhone.Text != "")
            {
                filters.Add(new MemberFilter()
                {
                    data       = txtPhone.Text,
                    filtertype = MemberFilterTypes.Phone
                });
            }

            MTO.GetMember(filters, getMember_Callback);
        }