private void CalcTypeListBox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
{
int index = CalcTypeListBox.SelectedIndex;
if (index > -1)
{
CalcTypeChoicesPage.IsOpen = false;
CalcTypeButton.Content = CalcTypeListBox.SelectedItem.ToString();
}
}