private void button1_Click(object sender, EventArgs e) { frm.pathPart = GenericFunction.chooseFolder(); if (!string.IsNullOrEmpty(frm.pathPart)) { lblInventorD.Text = System.IO.Path.GetFileName(frm.pathPart); } }
private void btnExcel_Click(object sender, EventArgs e) { frm.pathExcel = GenericFunction.chooseFile("Excel (*.xlsx)|*.xlsx"); if (!string.IsNullOrEmpty(frm.pathExcel)) { lblExcelD.Text = System.IO.Path.GetFileName(frm.pathExcel); Excel.analizzoExcel(frm.pathExcel); } }
private void btnFolder_Click(object sender, EventArgs e) { ThicknessFrm.pathPart = GenericFunction.chooseFolder(false); if (!string.IsNullOrEmpty(ThicknessFrm.pathPart)) { tbInventorPart.Text = System.IO.Path.GetFileName(ThicknessFrm.pathPart); // TODO conto quanti ipt sono stati rilevati int iptCounter = GenericFunction.countFiles(ThicknessFrm.pathPart, "*.ipt"); ListViewItem item1 = new ListViewItem("File ipt trovati: " + iptCounter.ToString(), 0); item1.SubItems.Add("Ok"); lvThks.Items.AddRange(new ListViewItem[] { item1 }); } }