private void btnPrint_Click(object sender, EventArgs e) { try { DataOperator.DataPrint(this.lvPerformance, "员工信息", null); } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }
/// <summary> /// Handles the Click event of the btnStockPrint control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> /// 整理人:桂书丛 /// 整理时间:2013-02-02 private void btnStockPrint_Click(object sender, EventArgs e) { try { DataOperator.DataPrint(this.gvStock, "库存信息", this); } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }