예제 #1
0
 //출금 텍스트 예외처리
 private void Withdraw_TextChanged(object sender, TextChangedEventArgs e)
 {
     try
     {
         if (Withdraw.Text == "")
         {
             Withdraw_Number = 0;
             Withdraw.Text   = "0";
         }
         else
         {
             Withdraw_Number = Convert.ToInt32(Withdraw.Text);
         }
     }
     catch
     {
         Withdraw.Text = Withdraw_Input;
         Withdraw.Select(Withdraw.Text.Length, 0);
     }
 }