private void buttonCancel_Click(object sender, EventArgs e) { bool result = false; try { OrderProperties cancelOrderProperties = new OrderProperties(); cancelOrderProperties.Order_Id = textBoxCancelOrderId.Text; cancelOrderProperties.Description = textBoxCancelDescription.Text; cancelOrderProperties.User_ID = _currentUserSessionInformation.User_Id; cancelOrderProperties.Vendor_Id = _currentUserSessionInformation.Vendor_ID; cancelOrderProperties.Order_Status = "NEW ORDER"; com.app.business.CustomerMainWindowHandler customerOrderCancel = new app.business.CustomerMainWindowHandler(); result = customerOrderCancel.cancelExistingOrder(cancelOrderProperties); if (result) { MessageBox.Show("ORDER CANCELLED SUCCESSFULLY", "ORDERS", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("ORDER CANCELLED ALREADY! ", "ORDERS", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } catch (Exception exp) { Console.WriteLine(exp.StackTrace); } }
private void radioButtonActive_CheckedChanged(object sender, EventArgs e) { com.app.business.CustomerMainWindowHandler getActiveOrders = new app.business.CustomerMainWindowHandler(); //**********testing List <OrderProperties> listofOrders = getActiveOrders.getOrders(_currentUserSessionInformation.Vendor_ID, "NEW ORDER"); fillOrderDataGrid(listofOrders); }