public void DeleteSize(DTOSize size)
 {
     if (SizeListChanged != null)
     {
         SizeListChanged.Invoke(this, new SizeListChangedEventArgs(Sizes));
     }
 }
Exemplo n.º 2
0
            public void UpdateSize(Size size)
            {
                var updatingSize = Sizes.Find(p => p.Id == size.Id);
                var index        = Sizes.IndexOf(updatingSize);

                Sizes[index] = size;
                SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(Sizes, null));
            }
Exemplo n.º 3
0
 private void OnSizeListChange(object sender, SizeListChangedEventArgs e)
 {
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(e.Sizes, e.Error));
 }
Exemplo n.º 4
0
 private void ThrowError(DTOSize size, string error)
 {
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(GetSizeList(size.Position), error));
 }
Exemplo n.º 5
0
 public void DeleteSize(Size size)
 {
     Sizes.Remove(size);
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(Sizes, null));
 }
Exemplo n.º 6
0
 public void AddSize(Size size)
 {
     Sizes.Add(size);
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(Sizes, null));
 }
Exemplo n.º 7
0
 private void InvokeEvent(Position position)
 {
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(GetSizeList(position), null));
 }
 public void UpdateSize(DTO.Size size)
 {
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(GetSizeList(size.Position), null));
 }