Exemple #1
0
        private void btn_Click(object sender, EventArgs e)
        {
            btnClearBrowser.PerformClick();
            CWorker.BasePath = _BasePath;
            txtbxStatus.Text = "Read Flickr Data";
            txtbxStatus.Refresh();

            CReadFlickr reader = new CReadFlickr();
            CDB         cDB    = reader.Exec();

            txtbxStatus.Text += System.Environment.NewLine + "Update DB Store";
            txtbxStatus.Refresh();
            reader.Commit();
            txtbxStatus.Text += System.Environment.NewLine + "Calculate Statistics";
            txtbxStatus.Refresh();
            CStatistics xStatistics = new CStatistics(cDB);
            CXDB        xDB         = xStatistics.Exec();

            txtbxStatus.Text += System.Environment.NewLine + "Max Statistics Collected per Photo: " + xDB.MaxCount;
            CHTML html = new CHTML(xDB, 25);

            txtbxStatus.Text += System.Environment.NewLine + "Create HTML";
            txtbxStatus.Refresh();
            html.Exec();
            //MessageBox.Show("Ready.", "Read Flickr plus Statistics plus HTML", MessageBoxButtons.OK);
            btnDaily.PerformClick();
        }
Exemple #2
0
        private void btnReadFlickr_Click(object sender, EventArgs e)
        {
            txtbxStatus.Text = "Read Flickr Data";
            txtbxStatus.Refresh();
            btnClearBrowser.PerformClick();
            CReadFlickr reader = new CReadFlickr();
            CDB         cDB    = reader.Exec();

            reader.Commit();
            MessageBox.Show("Ready.", "Read Flickr", MessageBoxButtons.OK);
        }