예제 #1
0
        public ImportPageIconCommand(PageIconViewModel pageIconVM, Stream oldStream, Stream newStream)
        {
            _pageIconVM = pageIconVM;
            _newStream  = newStream;

            _oldStream = oldStream;
        }
예제 #2
0
 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);
     }
 }