private void deleteExpense() { if (user.getFlat().getIsManager() >= 2) { controller = new ExpenseModule(Util.CONNECTION_DETAILS.CONNECITION_STRING, ""); controller.deleteExpense(this.GetExpenseDetails()); this.Dispose(); } }