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