Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
        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 });
            }
        }