Пример #1
0
        private void WithoutBarcodeChkBox_CheckedChanged(object sender, EventArgs e)
        {
            if (WithoutBarcodeChkBox.Checked)
            {
                BarcodeToEditTxtBox.Clear();
                BarcodeToEditTxtBox.Enabled     = false;
                ItemDescriptionComboBox.Enabled = false;
                WithoutBarcodeComboBox.Enabled  = true;
                ByBarcDescChkBox.Enabled        = false;

                BarcodeTxtBox.Enabled = false;
                BarcodeTxtBox.Clear();
                if (IsUpdating)
                {
                    return;
                }
                UpdateItemBtn.Hide();
            }
            else
            {
                BarcodeToEditTxtBox.Enabled     = true;
                ItemDescriptionComboBox.Enabled = false;
                WithoutBarcodeComboBox.Enabled  = false;
                ByBarcDescChkBox.Enabled        = true;
                ByBarcDescChkBox.Checked        = true;
                BarcodeTxtBox.Enabled           = Enabled;
                if (IsUpdating)
                {
                    return;
                }
                BarcodeTxtBox.Clear();
                UpdateItemBtn.Hide();
            }
        }
Пример #2
0
 private void DeleteNumberBut_Click(object sender, EventArgs e)
 {
     if (TextBox == BarcodeTxtBox)
     {
         BarcodeTxtBox.Clear(); //clears the last focused textbox
     }
     else
     {
         QuantityTxtBox.Clear(); //clears the last focused textbox
     }
 }
Пример #3
0
 private void ReloadForm()
 {
     BarcodeTxtBox.Clear();
     DescriptionTxtBox.Clear();
 }