private void frmUpdateTax_Load(object sender, EventArgs e) { selectClass.getTaxables(); txtTax1.Text = selectClass.tax1.ToString(); txtTax2.Text = selectClass.tax2.ToString(); txtTax3.Text = selectClass.tax3.ToString(); }
//set Initial State of controls public void _setInitialState() { cboProductType.SelectedIndex = 0; selectClass.CallingProductCategory(cboProSubCate); selectClass.getTaxables(); txtTax1percsentage.Text = selectClass.tax1.ToString(); txtTax2percsentage.Text = selectClass.tax2.ToString(); txtTax3percsentage.Text = selectClass.tax3.ToString(); txtNetAmt.Text = 0.ToString(); txtProdPrice.ResetText(); txtTax1Amt.Text = 0.ToString(); txtTax2Amt.Text = 0.ToString(); txtTax3Amt.Text = 0.ToString(); txtProdDecs.ResetText(); txtProdName.ResetText(); }