示例#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();
 }