private void Button_Click_2(object sender, RoutedEventArgs e) { metricWindow = new AddMetricWindow { Owner = this }; metricWindow.ShowDialog(); }
private void Button_Click_3(object sender, RoutedEventArgs e) { metricWindow = new AddMetricWindow { Owner = this }; metricWindow.MetricBox.SelectedValue = "Pushups"; metricWindow.ShowDialog(); }