Пример #1
0
 private void TxtNavlun_Leave(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(TxtNavlun.Text))
     {
         TxtNavlun.Text = "0";
     }
     else
     {
         try
         {
             TxtNavlun.Text = decimal.Parse(TxtNavlun.Text).ToString("C");
         }
         catch
         {
             TxtNavlun.Focus();
             TxtNavlun.SelectAll();
         }
     }
     Hesapla();
 }
Пример #2
0
 private void TxtNavlun_Enter(object sender, EventArgs e)
 {
     TxtNavlun.Text = TxtNavlun.Text.Replace(" TL", "");
     TxtNavlun.Focus();
     TxtNavlun.SelectAll();
 }