private void SaveButton_Click(object sender, RoutedEventArgs e)
        {
            Debug.WriteLine(methodName + "," + elapsedTime);

            using (var db = new PerformanceContext())
            {
                db.Add(new Speed {
                    SpeedMS = elapsedTime, Type = methodName
                });;

                db.SaveChanges();
            }
        }
        private void btnRetrieve_Click(object sender, RoutedEventArgs e)
        {
            using (var db = new PerformanceContext())
            {
                String comboBoxValue = ComboBox.Text;

                if (comboBoxValue == "Task")
                {
                    var performances = from p in db.Speeds
                                       where p.Type.Equals("io.Task")
                                       select p;
                    foreach (var performance in performances)
                    {
                        labelretrieve.Content = "ID " + performance.SpeedId + " Speed " + performance.SpeedMS;
                    }
                }
                if (comboBoxValue == "ThreadPool")
                {
                    var performances = from p in db.Speeds
                                       where p.Type.Equals("io.Threadpool")
                                       select p;
                    foreach (var performance in performances)
                    {
                        labelretrieve.Content = "ID " + performance.SpeedId + " Speed " + performance.SpeedMS;
                    }
                }
                if (comboBoxValue == "Parallel.For")
                {
                    var performances = from p in db.Speeds
                                       where p.Type.Equals("io.Parallel.For")
                                       select p;
                    foreach (var performance in performances)
                    {
                        labelretrieve.Content = "ID " + performance.SpeedId + " Speed " + performance.SpeedMS;
                    }
                }
                if (comboBoxValue == "Parallel Task")
                {
                    var performances = from p in db.Speeds
                                       where p.Type.Equals("io.ParallelTask")
                                       select p;
                    foreach (var performance in performances)
                    {
                        labelretrieve.Content = "ID " + performance.SpeedId + " Speed " + performance.SpeedMS;
                    }
                }
            }
        }