public void GetAnswer(bool answer) { if (answer) { if (ownerPanel.Equals("activeInactive")) { AccountController.ActiveInactiveAccount(); } else if (ownerPanel.Equals("delete")) { AccountController.DeleteAccount(); } } HideWindow(confirmationPanel); }