Esempio n. 1
0
 private void txtPhoneNumber_KeyUp(object sender, KeyRoutedEventArgs e)
 {
     try
     {
         //For check sytax entered in Name field
         CheckSyntax.checkOnlyNumber(sender, e);
     }
     catch (Exception ex)
     {
         MessageDialog msg = new MessageDialog(ex.Message + " Void - txtPhoneNumber_KeyUp");
         //msg.ShowAsync();
     }
 }
        private void txtPhoneNumber_KeyUp(object sender, KeyRoutedEventArgs e)
        {
            //For check sytax entered in PhoneNumber field
            CheckSyntax.checkOnlyNumber(sender, e);

            if (txtPhoneNumber.Text.Length > 10)
            {
                getUserDetail();
                txtVisitorName.Visibility = Visibility.Visible;
            }
            else
            {
                txtVisitorName.Visibility = Visibility.Collapsed;
            }
        }
        private void  txtPhoneNumber_KeyUp(object sender, KeyRoutedEventArgs e)
        {
            try
            {
                //For check sytax entered in PhoneNumber field
                CheckSyntax.checkOnlyNumber(sender, e);

                //if (txtPhoneNumber.Text.Length > 10)
                //{
                //    getUserDetail();
                //    txtVisitorName.Visibility = Visibility.Visible;
                //}
                //else
                //{
                //    txtVisitorName.Visibility = Visibility.Collapsed;
                //}
            }
            catch (Exception ex)
            {
                MessageDialog msg = new MessageDialog(ex.Message + " Void - txtPhoneNumber_KeyUp");
                //msg.ShowAsync();
            }
        }