private void TxtBoxPurchacePrice_TextChanged(object sender, EventArgs e) { if (StockCheckInput.CheckInteger(TxtBoxPurchacePrice.Text)) { double purchasePrice; double coef; purchasePrice = TxtBoxPurchacePrice.Text == string.Empty ? 0 : double.Parse(TxtBoxPurchacePrice.Text); coef = txtCoef.Text == string.Empty ? 0 : int.Parse(txtCoef.Text); lblFinalPrice.Text = (purchasePrice * coef).ToString(); } }
private bool CheckIntegerInput() { return(StockCheckInput.CheckInteger(TxtBoxPurchacePrice.Text) && StockCheckInput.CheckInteger(txtCoef.Text) && StockCheckInput.CheckInteger(textBoxStockMin.Text) && StockCheckInput.CheckInteger(textBoxStockMax.Text)); }
private bool CheckMinAndMax() { return(StockCheckInput.CheckMinAndMax(textBoxStockMax.Text, textBoxStockMin.Text)); }
private bool TextboxesFilled() { return(StockCheckInput.CheckTextboxesFilled(groupBox1)); }
private bool BarCodeLengthIs13() { return(StockCheckInput.CheckBarCodeLenght(TxtBoxBarCode.Text)); }
private bool ComboBoxFilled() { return(StockCheckInput.CheckComboBoxFilled(groupBox1)); }