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(); }
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()); } }