Пример #1
0
 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();
     }
 }
Пример #2
0
 private bool CheckIntegerInput()
 {
     return(StockCheckInput.CheckInteger(TxtBoxPurchacePrice.Text) && StockCheckInput.CheckInteger(txtCoef.Text) &&
            StockCheckInput.CheckInteger(textBoxStockMin.Text) && StockCheckInput.CheckInteger(textBoxStockMax.Text));
 }
Пример #3
0
 private bool CheckMinAndMax()
 {
     return(StockCheckInput.CheckMinAndMax(textBoxStockMax.Text, textBoxStockMin.Text));
 }
Пример #4
0
 private bool TextboxesFilled()
 {
     return(StockCheckInput.CheckTextboxesFilled(groupBox1));
 }
Пример #5
0
 private bool BarCodeLengthIs13()
 {
     return(StockCheckInput.CheckBarCodeLenght(TxtBoxBarCode.Text));
 }
Пример #6
0
 private bool ComboBoxFilled()
 {
     return(StockCheckInput.CheckComboBoxFilled(groupBox1));
 }