Exemple #1
0
        public void Admin_Tool_Inventory_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'stock_DatabaseDataSet.StockTable' table. You can move, or remove it, as needed.
            this.stockTableTableAdapter.Fill(this.stock_DatabaseDataSet.StockTable);
            RefreshTable RT = new RefreshTable(StockDataGridView);

            CB    = new Combobox(Name);
            total = TS.Totalstock();
        }
Exemple #2
0
 private void Delete_Click(object sender, EventArgs e)
 {
     if (Name.Text != "")
     {
         Delete Item = new Delete(Name.Text);
         Item.Check();
         ClearTextFields();
         RefreshTable RT = new RefreshTable(StockDataGridView);
     }
     else
     {
         MessageBox.Show("Please Enter The Name To Delete", "Notice");
     }
 }
Exemple #3
0
 private void Update_Click(object sender, EventArgs e)
 {
     if (Name.Text != "" && TP.Text != "" && Quantity.Text != "" && Discount.Text != "")
     {
         Update Item = new Update(Name.Text, Convert.ToDouble(TP.Text), Convert.ToInt32(Quantity.Text), Convert.ToInt32(Discount.Text));
         Item.Check();
         ClearTextFields();
         RefreshTable RT = new RefreshTable(StockDataGridView);
     }
     else
     {
         MessageBox.Show("Please Enter The Name To Update", "Notice");
     }
 }
Exemple #4
0
 private void Add_Click(object sender, EventArgs e)
 {
     if (Name.Text != "" && TP.Text != "" && Quantity.Text != "" && Discount.Text != "")
     {
         Add Item = new Add(Name.Text, Convert.ToDouble(TP.Text), Convert.ToInt32(Quantity.Text), Convert.ToInt32(Discount.Text));
         Item.Check();
         ClearTextFields();
         RefreshTable RT = new RefreshTable(StockDataGridView);
     }
     else
     {
         MessageBox.Show("Please Fill All Forums To Add", "Notice");
     }
 }