/// <summary> /// Instantiates this object with the specified set of export parameters /// </summary> /// <param name="exportParams">Export parameters collected from the dialog</param> /// <param name="parentViewModel">Disassembly parent view model</param> public DisassemblyExporter(ExportDisassemblyViewModel exportParams, DisassemblyToolWindowViewModel parentViewModel) { ExportParams = exportParams; ParentViewModel = parentViewModel; MaxLineLength = GetMaxLineLength(); InstructionIndent = new string(' ', GetIndentSpacesCount()); InitCommentProperties(); }
/// <summary> /// Sets the view model of this dialog /// </summary> /// <param name="vm"></param> public void SetVm(ExportDisassemblyViewModel vm) { DataContext = Vm = vm; }