Exemplo n.º 1
0
 public void AddCopywriters(params Copywriter[] copywriters)
 {
     for (int i = 0; i < copywriters.Length; i++)
     {
         CopywriterList.Add(copywriters[i]);
         CopywritersCountChanged?.Invoke(this, new CopywriterListHandlerEventArgs(ColName,
                                                                                  "Elemest added",
                                                                                  copywriters[i]));
     }
 }
Exemplo n.º 2
0
        public void AddDefaults()
        {
            const int defa = 3;

            for (int n = 0; n < defa; n++)
            {
                CopywriterList.Add(new Copywriter());
                CopywritersCountChanged?.Invoke(this, new CopywriterListHandlerEventArgs(ColName,
                                                                                         "Elemest added",
                                                                                         new Copywriter()));
            }
        }
Exemplo n.º 3
0
 public bool Remove(int n)
 {
     if (n > CopywriterList.Count | n < 0)
     {
         return(false);
     }
     else
     {
         CopywriterList.RemoveAt(n);
         CopywritersCountChanged?.Invoke(this, new CopywriterListHandlerEventArgs(ColName,
                                                                                  "Elemest deleted",
                                                                                  CopywriterList[n]));
         return(true);
     }
 }