private void exportcsv_btn_Click(object sender, EventArgs e) { string datetime = DateTime.Now.ToString("yyMMdd_HHmm"); Com.Nidec.Mes.Common.Basic.MachineMaintenance.Common.csvclass exportcsv = new Common.csvclass(); exportcsv.exportcsv(ref warehouse_vt_dgv, linksave_txt.Text, this.TitleText + "_" + datetime); }
private void exportcsv_btn_Click(object sender, EventArgs e) { string datetime = DateTime.Now.ToString("yyMMdd_HHmm"); if (warehouse_list_dgv.Visible == true) { Com.Nidec.Mes.Common.Basic.MachineMaintenance.Common.csvclass exportexcel = new Common.csvclass(); exportexcel.exportcsv(ref warehouse_list_dgv, linksave_txt.Text, this.TitleText + "_" + value_cmb.Text + "_" + datetime); } else if (datalost_dgv.Visible == true) { Com.Nidec.Mes.Common.Basic.MachineMaintenance.Common.csvclass exportexcel = new Common.csvclass(); exportexcel.exportcsv(ref datalost_dgv, linksave_txt.Text, this.TitleText + "_" + value_cmb.Text + datetime); } else if (warehouse_vt_dgv.Visible == true) { Com.Nidec.Mes.Common.Basic.MachineMaintenance.Common.csvclass exportexcel = new Common.csvclass(); exportexcel.exportcsv(ref warehouse_vt_dgv, linksave_txt.Text, this.TitleText + "_" + value_cmb.Text + datetime); } }