private void button_Click(object sender, RoutedEventArgs e) { int high, low, pul; double tempD; int.TryParse(highPres.Text, out high); int.TryParse(lowPres.Text, out low); int.TryParse(pulse.Text, out pul); double.TryParse(temp.Text, out tempD); LifeFuncMeasure measures = new LifeFuncMeasure { Temp = tempD, HighPressure = high, LowPressure = low, Pulse = pul, Date = DateTime.Now }; DataSources.AddMeasure(measures); Frame.Navigate(typeof(MainPage)); }