コード例 #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 btnStatistics_Click(object sender, EventArgs e)
        {
            CStatistics xStatistics = new CStatistics();
            CXDB        xDB         = xStatistics.Exec();

            xStatistics.Commit();
            MessageBox.Show("Statistic Generation Completed.");
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: cloud2013/FlickrNetSamples
        private void btnCombo_Click(object sender, EventArgs e)
        {
            txtbxStatus.Text = "Calculate Statistics and Create HTML";
            txtbxStatus.Refresh();
            CStatistics xStatistics = new CStatistics();
            CXDB        xDB         = xStatistics.Exec();

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

            html.Exec();
            //MessageBox.Show("Ready.","Statistics plus HTML",MessageBoxButtons.OK);
            btnDaily.PerformClick();
        }