private void OnFileSaved(object sender, FileSavedEventArgs e) { var doc = (frmCR2WDocument)sender; var editvar = (CR2WHeaderBlock7)doc.SaveTarget; editvar.unknowndata = ((MemoryStream)e.Stream).ToArray(); }
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()); } }