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