public ImportPageIconCommand(PageIconViewModel pageIconVM, Stream oldStream, Stream newStream) { _pageIconVM = pageIconVM; _newStream = newStream; _oldStream = oldStream; }
public ClearPageIconCommand(PageIconViewModel pageIconVM, Stream oldStream) { _pageIconVM = pageIconVM; if (oldStream != null) { _oldStream = new MemoryStream((int)oldStream.Length); oldStream.Seek(0, SeekOrigin.Begin); oldStream.CopyTo(_oldStream); _oldStream.Seek(0, SeekOrigin.Begin); } }