/// <summary> /// Displays the Export Disassembly dialog to collect parameter data /// </summary> /// <param name="vm">View model with collected data</param> /// <param name="startAddress">Disassembly start address</param> /// <param name="endAddress">Disassembly end address</param> /// <returns> /// True, if the user stars export; false, if the export is cancelled /// </returns> private static bool DisplayExportMemoryDialog(out ExportMemoryViewModel vm, ushort startAddress, ushort endAddress) { var exportDialog = new ExportMemoryDialog() { HasMaximizeButton = false, HasMinimizeButton = false }; vm = new ExportMemoryViewModel { Filename = Path.Combine(ExportMemoryViewModel.LatestFolder ?? "C:\\Temp", "Memory.bin"), StartAddress = startAddress.ToString(), EndAddress = endAddress.ToString(), AddToProject = true }; exportDialog.SetVm(vm); var accepted = exportDialog.ShowModal(); return(!accepted.HasValue || !accepted.Value); }
public MemoryExporter(ExportMemoryViewModel exportParams) { ExportParams = exportParams; }