private void button2_Click_1(object sender, EventArgs e) { var fm = new fileMan(); List <string> jum = fm.jumlah("c:\\tes\\xls\\tes.xlsx", "xlsx"); jum.ForEach(el => Console.WriteLine(el)); }
private void button2_Click(object sender, EventArgs e) { var fm = new fileMan(); var ws = new wsClass(); string[] pesan = fm.getFile(outbox); string pes = ws.invokeProd("", "", pesan[0]); MessageBox.Show(pes); }
private void button4_Click(object sender, EventArgs e) { //string e = ""; var fm = new fileMan(); var ws = new wsClass(); string[] files = fm.getFile(outbox); string pes = ""; string[] fName = null; if (files != null && files.Length > 0) { foreach (string i in files) { try { pes = ws.invokeProd("", "", i); } catch (Exception ex) { System.Console.WriteLine(ex); } //string[] has = pes.Split('|'); //fName = i.Split('\\'); string namaFile = "";// fName[fName.Length - 1]; System.Console.WriteLine(namaFile + " " + pes); //if (has[0] == "failed") //{ // fm.moveFile(i, "c:\\tes\\error\\"); //} //else //{ // fm.moveFile(i, "c:\\tes\\success\\"); //} } } }
private void button3_Click_1(object sender, EventArgs e) { var fm = new fileMan(); fm.xlsToTxt("c:\\tes\\xls\\satu.xlsx", "xlsx"); }
private void button3_Click(object sender, EventArgs e) { var fm = new fileMan(); //int jum = fm.jumlah("c:\\tes\\MB51Jan-Apr.xlsx", "xlsx"); //MessageBox.Show(jum.ToString()); }