public Form GetForm(TrustContext context) { if (null == context) { throw new ArgumentNullException(nameof(context)); } return(TrustDisplayHelper.CreateForm(context, context.Trust)); }
public Form GetForm(SessionContext context) { if (null == context) { throw new ArgumentNullException(nameof(context)); } if (!new AccountService(context.UnityContainer).CheckingAccountExists()) { return(ErrorFormDisplayHelper.BuildErrorForm(context.ExtensionManager, Resources.CreateTrustFormProvider_GetForm_Purses_list_is_empty, Resources.CreateTrustFormProvider_GetForm_Please_refresh_the_list_of_purses_or_add_it_manually)); } return(TrustDisplayHelper.CreateForm(context, null)); }