private void button1_Click(object sender, EventArgs e) { OrderDic.Order orders = new OrderDic.Order(int.Parse(del_proid_textBox.Text.ToString())) { OrderID = int.Parse(del_proid_textBox.Text.ToString()) }; int res = orders.delOrder(); }
private void edit_button_Click(object sender, EventArgs e) { //ordersid = int.Parse(edit_order_textBox.Text.ToString()); OrderDic.Order orders = new OrderDic.Order(int.Parse(edit_order_textBox.Text.ToString())); EditOrder edit_order = new EditOrder(); edit_order.Show(); //InterfaceOrder orders = new Order(proid); //int res = orders.editOrder(); }
private void edit_order_button_Click(object sender, EventArgs e) { int orderid = int.Parse(edit_order_textBox.Text.ToString()); int productid = int.Parse(comboBox1.SelectedValue.ToString()); int orderqty = this.qty; DateTime ordertime = DateTime.Now; OrderDic.Order order = new OrderDic.Order(orderid, productid, orderqty, ordertime) { OrderID = orderid, ProductID = productid, OrderQty = orderqty, OrderTime = ordertime }; int res = order.editOrder(); }
private void submit_button2_Click(object sender, EventArgs e) { int productid = int.Parse(product_comboBox.SelectedValue.ToString()); int orderqty = int.Parse(qty_label.Text); int orderprice = int.Parse(total_label.Text); int userid = int.Parse(user_comboBox.SelectedValue.ToString()); DateTime ordertime = DateTime.Now; OrderDic.Order orders = new OrderDic.Order(productid, orderqty, orderprice, userid, ordertime) { ProductID = productid, OrderQty = orderqty, OrderPrice = orderprice, UserID = userid, OrderTime = ordertime, }; int res = orders.addOrder(); MessageBox.Show("Add Order OK!!"); }
void selectOrder() { OrderDic.Order order = new OrderDic.Order(); order.getOrderid(); }