示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Parameters.LoadParameters(DateManipulation.DateTimeToint(dateTimePicker1.Value), (Int32)recency.Value, percentage.Text, count.Text);
            label3.Text    = "Start: " + DateTime.Now;
            StopB.Enabled  = true;
            StartB.Enabled = false;

            backgroundWorker1.RunWorkerAsync();
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int parametrsID = (int)(parametersIDs.SelectedItem);
            int date        = DateManipulation.DateTimeToint(((DateTime)availableDates.SelectedItem).AddDays(1));

            os = new OLDStatistics(date, FirstAndSecondPurchase.Checked);
            ns = new NEWStatistics(parametrsID, date, FirstAndSecondPurchase.Checked, (double)cutOffPercentage.SelectedItem);

            OLD_NoP.Text  = "Number of predictions: " + os.predictionCount;
            OLD_CPtp.Text = "Total number: " + os.correctPredictionsCount;
            OLD_CPp.Text  = "Percentage: " + os.correctPredictionsPercentage;
            OLD_FPtp.Text = "Total number: " + os.falsePredictionCount;
            OLD_FPp.Text  = "Percentage: " + os.falsePredictionPercentage;
            OLD_Cp.Text   = "Percentage: " + os.coveragePercentage;

            NEW_NoP.Text  = "Number of predictions: " + ns.predictionCount;
            NEW_CPtp.Text = "Total number: " + ns.correctPredictionsCount;
            NEW_CPp.Text  = "Percentage: " + ns.correctPredictionsPercentage;
            NEW_FPtp.Text = "Total number: " + ns.falsePredictionCount;
            NEW_FPp.Text  = "Percentage: " + ns.falsePredictionPercentage;
            NEW_Cp.Text   = "Percentage: " + ns.coveragePercentage;
        }
示例#3
0
 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
 {
     Customer.nextWeekPredictionsAsync(DateManipulation.DateTimeToint(dateTimePicker1.Value), t1_OnProgressUpdate, t2_OnFinishUpdate, backgroundWorker1);
 }