예제 #1
0
 /// <summary>
 /// 查看数据按钮点击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnReadData_Click(object sender, EventArgs e)
 {
     if (_printDataList == null || _printDataList.Count == 0)
     {
         MessageBox.Show("请先选择有效的文件!");
     }
     else
     {
         PrintDataForm dataFrom = new PrintDataForm(_fileName, _printDataList);
         dataFrom.ShowDialog();
     }
 }
예제 #2
0
 /// <summary>
 /// 查看数据按钮点击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnReadData_Click(object sender, EventArgs e)
 {
     if (_printDataList == null || _printDataList.Count == 0)
     {
         MessageBox.Show("没有数据!");
     }
     else
     {
         string        fileName = _printDataList.FirstOrDefault().BarcodeId;
         PrintDataForm dataFrom = new PrintDataForm(fileName, _printDataList);
         dataFrom.ShowDialog();
     }
 }