public void AddClient(BaseBankClient client) { LogMessage?.Invoke($"добавлен новый клиент {client.ClientFullName}"); clients.Add(client); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(VIPClients))); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(StandartClients))); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(OrganisationClients))); }
/// <summary> /// конструктор /// </summary> public Accaunt(AccauntsType type, BaseBankClient client) { rates = standartRates; balans = 0; id = nextid++; opendate = DateTime.UtcNow; this.type = type; this.owner = client; if (type == AccauntsType.Simple) { this.ratesType = RatesPeriods.Zero; } else { this.ratesType = RatesPeriods.Mouth; } }