/// <summary> /// 打印预约 /// </summary> /// <param name="noteId"></param> private void PrintPreview(Note note) { Cursor oldCursor = this.Cursor; this.Cursor = Cursors.WaitCursor; string printTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); this.OutputPrintFile(note); CardPrintForm dlg = new CardPrintForm(); dlg.CardFilename = this._printFilename; // 卡片文件名 dlg.PrintPreviewFromCardFile(); this.Cursor = oldCursor; }