private void addAccountLogic() { ClearComponentRessources(adminComponentPanel); form = new Account.Component.FormAddOrEditAccountComponent(); ChangeComponent(adminComponentPanel, form); isAddOrEditComponentActive = true; isShowComponentActive = false; }
private void editAccountLogic() { if (showComponent.getCurrentAccount() != null) { Model.Account tempAccount = showComponent.getCurrentAccount(); ClearComponentRessources(adminComponentPanel); form = new Account.Component.FormAddOrEditAccountComponent(tempAccount); ChangeComponent(adminComponentPanel, form); isAddOrEditComponentActive = true; isShowComponentActive = false; } }