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(); }
private void btnStatistics_Click(object sender, EventArgs e) { CStatistics xStatistics = new CStatistics(); CXDB xDB = xStatistics.Exec(); xStatistics.Commit(); MessageBox.Show("Statistic Generation Completed."); }
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(); }