Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            stopwatch.Stop();
            var testTime = stopwatch.Elapsed;

            var actualDistance = testDistance(testPoints);
            var indexOD        = iod(actualDistance, circleRadius);

            var csv     = new StringBuilder();
            var newLine = string.Format("{0},{1},{2},{3},{4},{5},{6}", trial, testTime, actualDistance, circleDistance, circleRadius, circleDirection, indexOD);

            csv.AppendLine(newLine);
            File.AppendAllText(testFile, csv.ToString());

            this.Hide();
            var test = new test2();

            test.Closed += (s, args) => this.Close();
            test.Show();
        }
Ejemplo n.º 2
0
 private void button1_Click_1(object sender, RoutedEventArgs e)
 {
     test2 t2 = new test2();
     frame1.Navigate(t2);
 }