private void CloseExecute() { try { view.Close(); } catch (Exception ex) { MessageBox.Show("Exception" + ex.Message.ToString()); } }
private void CloseExecute() { try { MessageBoxResult result = MessageBox.Show("Are you sure you want to close?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { createPizzaView.Close(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }