Exemplo n.º 1
0
 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)));
 }
Exemplo n.º 2
0
 /// <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;
     }
 }