public void DeleteSize(DTOSize size)
 {
     if (SizeListChanged != null)
     {
         SizeListChanged.Invoke(this, new SizeListChangedEventArgs(Sizes));
     }
 }
Пример #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));
            }
Пример #3
0
 private void OnSizeListChange(object sender, SizeListChangedEventArgs e)
 {
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(e.Sizes, e.Error));
 }
Пример #4
0
 private void ThrowError(DTOSize size, string error)
 {
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(GetSizeList(size.Position), error));
 }
Пример #5
0
 public void DeleteSize(Size size)
 {
     Sizes.Remove(size);
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(Sizes, null));
 }
Пример #6
0
 public void AddSize(Size size)
 {
     Sizes.Add(size);
     SizeListChanged?.Invoke(this, new SizeListChangedEventArgs(Sizes, null));
 }
Пример #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));
 }