void sendToTest(object sender, RoutedEventArgs e) { Calibration calibration = new Calibration(Convert.ToInt32(serialNum.Text), listbox.Items[listbox.SelectedIndex].ToString()); calibration.Show(); }