示例#1
0
        private void OnFileSaved(object sender, FileSavedEventArgs e)
        {
            var doc     = (frmCR2WDocument)sender;
            var editvar = (CR2WEmbeddedWrapper)doc.SaveTarget;

            editvar.Data = ((MemoryStream)e.Stream).ToArray().ToList();
        }
        private void OnFileSaved(object sender, FileSavedEventArgs e)
        {
            var doc     = (frmCR2WDocument)sender;
            var editvar = (CR2WHeaderBlock7)doc.SaveTarget;

            editvar.unknowndata = ((MemoryStream)e.Stream).ToArray();
        }
示例#3
0
 private void OnVariableEditorSave(object sender, FileSavedEventArgs args)
 {
     if (args.Stream is MemoryStream)
     {
         var doc     = (frmCR2WDocument)sender;
         var editvar = (CVariable)doc.SaveTarget;
         editvar.SetValue(((MemoryStream)args.Stream).ToArray());
     }
 }