private void goToManageStoreForm() { try { OrdersManager frm = new OrdersManager(this); frm.Show(); this.Hide(); } catch (NoOrdersException exp) { MessageBox.Show("No orders have been placed. Please come back after an order has been registered"); } }
private void finishOrderButton_Click(object sender, EventArgs e) { try { serializeOrders(); if (callerForm.Enabled) { this.Close(); } else { OrdersManager frm = new OrdersManager(callerForm); frm.Show(); this.Close(); } } catch (EmptyOrderException) { MessageBox.Show("Your Order Is Empty ! Please Add Some Items To It."); } }