Example #1
0
 private void ClearForm()
 {
     if (AutoPartId == 0)
     {
         AutoPartTextbox.Clear();
         DescriptionTextbox.Clear();
         MakeTextbox.Clear();
         ModelTextbox.Clear();
         brandBindingSource.Position = -1;
         BrandDropdown.SelectedIndex = -1;
         SellingPriceTextbox.Text    = "0.00";
         SellingPrice2Textbox.Text   = "0.00";
         PurchasePriceTextbox.Text   = "0.00";
         ReorderTextbox.Text         = "0";
         InitialQtyTextbox.Text      = "0";
         UnitTextbox.Clear();
         PartNumberTextbox.Clear();
         SizeTextbox.Clear();
         AltTextbox.Clear();
         PictureTextbox.Clear();
     }
     else
     {
         LoadPartDetails();
     }
 }
        private void ClearButton_Click(object sender, EventArgs e)
        {
            PartNumberTextbox.Clear();
            //PartNameTextbox.Clear();
            BrandDropdown.ComboBox.SelectedIndex = -1;
            BrandDropdown.SelectedIndex          = -1;
            ModelTextbox.Clear();
            SizeTextbox.Clear();

            LoadPartsInventory();
        }
Example #3
0
        private void ClearFilter()
        {
            PartNumberTextbox.Clear();
            //PartNameTextbox.Clear();
            BrandDropdown.ComboBox.SelectedIndex = -1;
            BrandDropdown.SelectedIndex          = -1;
            ModelTextbox.Clear();
            SizeTextbox.Clear();

            LoadPartsInventory(true);
        }