private void Button_Click(object sender, RoutedEventArgs e)
        {
            orderFromSupplierDetailTable selectedOrder = (orderFromSupplierDetailTable)IdNumberComboBox.SelectedItem;
            supplierTable selectedItem = (supplierTable)supplierChangingComboBox.SelectedItem;

            OrderFromSupplierBL.UpdateBL(materialName.Text, materialType.Text, Convert.ToInt32(amount.Text), Convert.ToInt32(price.Text), selectedItem, selectedOrder, Convert.ToInt32(activity.Text), notes.Text)
            ;
            this.Close();
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            supplierTable selectedSupplier  = (supplierTable)supplierSelectionComboBox.SelectedItem;
            orderFromSupplierDetailTable id = OrderFromSupplierBL.AddOrderFromSupllier(name_txb.Text, type_txb.Text, Convert.ToInt32(amount_txb.Text), Convert.ToInt32(price_txb.Text),
                                                                                       selectedSupplier, notes_txb.Text);

            name_txb.Text   = "";
            type_txb.Text   = "";
            price_txb.Text  = "";
            notes_txb.Text  = "";
            amount_txb.Text = "";
            IdList.Add(id);
            ContinueOrderingMessage com = new ContinueOrderingMessage(this, this.IdList);

            this.Hide();
            com.ShowDialog();
        }