Example #1
0
        private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
        {
            PropertyFinder finder = new PropertyFinder();

            finder.InformationDownloadEvent += new InformationDownloadHandler(finder_InformationDownloadEvent);

            icon.BalloonTipText = "STARTED";
            icon.ShowBalloonTip(5 * 60 * 1000);
            string ConsoleText = null;

            if (String.IsNullOrEmpty(textBox1.Text) == false)
            {
                ////            D:\\Week185_SampleFile_Z5.xlsx
                OledbHandler Excelhandler = new OledbHandler(textBox1.Text, null);
                ConsoleText = Excelhandler.ReadExcelFileSingle(textBox1.Text.Trim(), "No Addresses Found$", "POSTCODE");
            }
            SetRichboxText(ConsoleText);
            SetRichboxText("\n\n\n");

            SetLabelText("Start time=" + DateTime.Now);
            //    ConsoleText = finder.FindMultipleProperties();
            SetRichboxText(ConsoleText);
            SetRichboxText("\n\n\n");
            SetLabelText("Read PAF FILE");
            // this.Hide();
        }
Example #2
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            //PropertyFinder finder = new PropertyFinder();
            //finder.InformationDownloadEvent += new InformationDownloadHandler(finder_InformationDownloadEvent);
            //icon.BalloonTipText = "STARTED";
            //icon.ShowBalloonTip(5*60*1000);
            //string ConsoleText = null;
            //if (String.IsNullOrEmpty(textBox1.Text)==false)
            //{
            //    OledbHandler Excelhandler = new OledbHandler();
            //   ConsoleText= Excelhandler.ReadExcelFileSingle(textBox1.Text.Trim(), "No Addresses Found$", "POSTCODE");
            //}
            //richTextBox1.Text = ConsoleText;
            //label2.Text = "Start time=" + DateTime.Now;
            //ConsoleText = finder.FindMultipleProperties();
            //richTextBox1.Text += ConsoleText;
            //this.Hide();
            //ConsoleText+=this.DownloadAllImages(this);
            //this.Show();
            //richTextBox1.Text = ConsoleText;
            string ConsoleText = null;

            backgroundWorker2.RunWorkerAsync();
            PropertyFinder finder = new PropertyFinder();

            //  ConsoleText += this.DownloadAllImages(this);
            ConsoleText += finder.DownloadAllImages(this);
            //  this.Show();
            SetRichboxText(ConsoleText);
            SetRichboxText("\n\n\n");
        }
Example #3
0
        private void buttonBrowse_Click(object sender, EventArgs e)
        {
            PropertyFinder finder = new PropertyFinder();

            richTextBox1.Clear();
        }