//生成说明书按钮 public void generateIntroBtn_Click(object sender, System.Windows.RoutedEventArgs e) { if (!HeatSourceLayoutApp.CommandManager.RequireLock()) { HeatSourceLayoutApp.CommandManager.AddCommand(CommandManager.ToolCommand.GenerateDocument); Application.DocumentManager.MdiActiveDocument.SendStringToExecute("\x1B", true, false, false); return; } else { changeBtnStyle(9); } WordUtil.CreateWord(); HeatSourceLayoutApp.CommandManager.ReleaseLock(); changeBtnStyle(-1); }