コード例 #1
0
ファイル: Form1.cs プロジェクト: cloud2013/FlickrNetSamples
        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();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: cloud2013/FlickrNetSamples
        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);
        }