예제 #1
0
        private void PhoneTextBox_Click(object sender, EventArgs e)
        {
            try
            {
                CWinKeyboardForm tempKeyboardForm = new CWinKeyboardForm("Search", "Enter Customer Name to search");
                tempKeyboardForm.ShowDialog();

                if (CWinKeyboardForm.Content.Equals("Cancel"))
                {
                    PhoneTextBox.Clear();
                    return;
                }
                PhoneTextBox.Text = CWinKeyboardForm.Content;
            }
            catch (Exception exp)
            {
                Console.Write(exp.Message);
            }
        }
예제 #2
0
 private void PhoneTextBox_Click(object sender, EventArgs e)
 {
     CWinKeyboardForm tempWinKeyboardForm = new CWinKeyboardForm("Customer Phone Number","Enter Phone Number");
     tempWinKeyboardForm.ShowDialog();
     if (CWinKeyboardForm.Content.Equals("Cancel"))
     {
         return;
     }
     PhoneTextBox.Text = CWinKeyboardForm.Content;
 }