Пример #1
0
        public Account CreateAccount(string name = "", Account parent = null)
        {
            if (AcctTemps == null)
            {
                AcctTemps = new List <Account>();
            }

            Account temp = new Account(parent, name);

            AcctTemps.Add(temp);
            temp.IsTempAccount = true;

            if (parent != null)
            {
                parent.AddAccount(temp);
            }

            return(temp);
        }