private void Assemble_Executed(object sender, ExecutedRoutedEventArgs e) { var filePath = DockingService.ActiveDocument.FilePath; //TODO: replace with a file extension specified by the user var outputPath = FilePath.ChangeExtention(filePath, ".8xk"); AssemblerService.AssembleFile(filePath, outputPath, null, AssemblyFlags.Assemble, (outputText) => { DockingService.OutputWindow.ClearText(); DockingService.OutputWindow.AddText(outputText); }); }