void Reset() { TxtLBound.Clear(); TxtRate.Clear(); TxtTestCode.Clear(); TxtTestID.Clear(); TxtTestName.Clear(); CmbTestClass.SelectedItem = ""; CmbTestUnits.SelectedItem = ""; }
private void TxtRate_TextChanged(object sender, EventArgs e) { try { rate = Convert.ToDouble(TxtRate.Text) * 0.01; } catch { //MessageBox.Show("年利率輸入錯誤"); rate = 0; TxtRate.Clear(); TxtRate.Focus(); } Calculation(); }
private void TxtRate_Enter(object sender, EventArgs e) { TxtRate.Clear(); }