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

            editvar.unknowndata = ((MemoryStream)e.Stream).ToArray();
        }
Beispiel #2
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());
     }
 }