private void btn출력_Click(object sender, EventArgs e) { btn출력.Enabled = false; strCondition = ""; if (ToipGrid.Rows.Count == 0 && MadeGrid.Rows.Count == 0) { MessageBox.Show("출력할 자료가 없습니다."); btn출력.Enabled = true; return; } strCondition = "일일작업결과"; frmPrt = readyPrt; frmPrt.Show(); frmPrt.BringToFront(); frmPrt.prt_일일작업결과(adoPrt1, adoPrt2, strCondition); btn출력.Enabled = true; }