private void btnMsgGroupMemExlinput_Click(object sender, EventArgs e)
        {
            try
            {
                clsEmailParser objparser = new clsEmailParser();
                using (OpenFileDialog ofd = new OpenFileDialog())
                {
                    excelData.Clear();
                    ofd.InitialDirectory = System.Windows.Forms.Application.StartupPath;
                    ofd.Filter           = "Text Files (*.xlsx)|*.xlsx";

                    if (ofd.ShowDialog() == DialogResult.OK)
                    {
                        txtMsgGroupMemInput.Text = ofd.FileName;
                        excelData = objparser.parseExcel(txtMsgGroupMemInput.Text);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Beispiel #2
0
 private void btnscrapperwithinput_Click(object sender, EventArgs e)
 {
     try
     {
         LinkedInManager.linkedInDictionaryExcelInput.Clear();
         clsEmailParser objparser = new clsEmailParser();
         using (OpenFileDialog ofd = new OpenFileDialog())
         {
             excelData.Clear();
             ofd.InitialDirectory = System.Windows.Forms.Application.StartupPath;
             ofd.Filter           = "Text Files (*.xlsx)|*.xlsx";
             if (ofd.ShowDialog() == DialogResult.OK)
             {
                 txtscrapperwithinput.Text = ofd.FileName;
                 excelData = objparser.parseExcel(txtscrapperwithinput.Text);//.ParseXLSXFile(textBox1.Text);
                 //  ParserClasses.Lstcorporatelink = excelData;
             }
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }