Exemplo n.º 1
0
        public override void OnCustomerLoadComplete(object sender, CustomerEventArgs e)
        {
            if (PlugInManager.IsModelMappedForPlugIn(e.Customer.Model.Id, this.Id))
            {
                var customer = e.Customer;

                // Hide all accounts under class: 'Income Expenses'
                foreach (Account acct in customer.Accounts.AccountsWithClass(C.IncomeExpenses))
                {
                    acct.Hidden = true;
                }
            }
        }